Skip to content

Commit f063536

Browse files
committed
Fixed write LED state on error
1 parent 95b3557 commit f063536

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

firmware/nand_programmer.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,9 @@ static int np_cmd_nand_write(np_prog_t *prog)
592592
break;
593593
}
594594

595+
if (ret < 0)
596+
led_wr_set(false);
597+
595598
return ret;
596599
}
597600

0 commit comments

Comments
 (0)