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 dc62946 commit 94f1eabCopy full SHA for 94f1eab
firmware/nand_programmer.c
@@ -570,7 +570,7 @@ static int _np_cmd_nand_read(np_prog_t *prog)
570
len = read_cmd->len;
571
DEBUG_PRINT("Read at 0x%lx 0x%lx bytes command\r\n", addr, len);
572
573
- if (addr + len >= prog->chip_info->size)
+ if (addr + len > prog->chip_info->size)
574
{
575
ERROR_PRINT("Read address 0x%lx+0x%lx is more then chip size 0x%lx\r\n",
576
addr, len, prog->chip_info->size);
0 commit comments