Skip to content

Commit 94f1eab

Browse files
committed
Fixed address exceeded error on read
1 parent dc62946 commit 94f1eab

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
@@ -570,7 +570,7 @@ static int _np_cmd_nand_read(np_prog_t *prog)
570570
len = read_cmd->len;
571571
DEBUG_PRINT("Read at 0x%lx 0x%lx bytes command\r\n", addr, len);
572572

573-
if (addr + len >= prog->chip_info->size)
573+
if (addr + len > prog->chip_info->size)
574574
{
575575
ERROR_PRINT("Read address 0x%lx+0x%lx is more then chip size 0x%lx\r\n",
576576
addr, len, prog->chip_info->size);

0 commit comments

Comments
 (0)