Skip to content

Commit 3dab2a5

Browse files
committed
Fix duplicated entries in bad block table
1 parent 0d1e941 commit 3dab2a5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

firmware/nand_programmer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,8 @@ int np_cmd_read_bad_blocks(np_prog_t *prog)
933933
{
934934
int ret;
935935

936-
led_rd_set(true);
936+
led_rd_set(true);
937+
nand_bad_block_table_init();
937938
ret = _np_cmd_read_bad_blocks(prog);
938939
led_rd_set(false);
939940

0 commit comments

Comments
 (0)