We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9774f2 commit 08f2e25Copy full SHA for 08f2e25
firmware/main.c
@@ -566,6 +566,9 @@ static int cmd_nand_write_end(prog_t *prog)
566
{
567
chip_info_t *chip_info = chip_info_selected_get();
568
569
+ if (!prog->page.offset)
570
+ goto Exit;
571
+
572
if (!prog->addr_is_valid)
573
574
ERROR_PRINT("Write address is not set\r\n");
@@ -574,9 +577,6 @@ static int cmd_nand_write_end(prog_t *prog)
577
575
578
prog->addr_is_valid = 0;
576
579
- if (!prog->page.offset)
- goto Exit;
-
580
if (nand_write(prog, chip_info))
581
return make_error_status(&prog->usb, ERR_NAND_WR);
582
0 commit comments