Skip to content

Commit 4290938

Browse files
committed
Fixed error code for non-aligned length
1 parent ddc18c4 commit 4290938

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firmware/nand_programmer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ static int np_cmd_nand_write_start(np_prog_t *prog)
528528
{
529529
ERROR_PRINT("Length 0x%lx is not aligned to page size 0x%lx\r\n",
530530
len, prog->chip_info.page_size);
531-
return NP_ERR_ADDR_NOT_ALIGN;
531+
return NP_ERR_LEN_NOT_ALIGN;
532532
}
533533

534534
prog->skip_bb = write_start_cmd->flags.skip_bb;

0 commit comments

Comments
 (0)