aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spi25.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/spi25.c b/spi25.c
index dd4543d3..1e797c84 100644
--- a/spi25.c
+++ b/spi25.c
@@ -325,7 +325,7 @@ static int spi_simple_write_cmd(struct flashctx *const flash, const uint8_t op,
struct spi_command cmds[] = {
{
.readarr = 0,
- .writecnt = 1,
+ .writecnt = JEDEC_WREN_OUTSIZE,
.writearr = (const unsigned char[]){ JEDEC_WREN },
}, {
.readarr = 0,