Skip to content

Commit 1244f3e

Browse files
committed
Use page size for write-ack window
1 parent efb4bb3 commit 1244f3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firmware/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ static int cmd_nand_write_data(prog_t *prog)
520520
}
521521

522522
prog->bytes_written += write_data_cmd->len;
523-
if (prog->bytes_written - prog->bytes_ack >= WRITE_ACK_BYTES)
523+
if (prog->bytes_written - prog->bytes_ack >= chip_info->page_size)
524524
{
525525
if (send_write_ack(prog->bytes_written))
526526
return -1;

0 commit comments

Comments
 (0)