diff options
author | Dean Glazeski <dnglaze@gmail.com> | 2009-11-19 17:12:23 -0600 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-19 15:25:18 -0800 |
commit | 31fb7788a605fe1c0c405444b5bab51a7e42d481 (patch) | |
tree | f80a27e06e6c403fe9ab8b76b0a055c7a0a6fa72 /src | |
parent | 4b18ef15a36a8b618c18ab18d0ed8596ecf9eaaa (diff) | |
download | riscv-openocd-31fb7788a605fe1c0c405444b5bab51a7e42d481.zip riscv-openocd-31fb7788a605fe1c0c405444b5bab51a7e42d481.tar.gz riscv-openocd-31fb7788a605fe1c0c405444b5bab51a7e42d481.tar.bz2 |
NAND verify doesn't advance.
Fix to move the device address up as the contents are verified.
Signed-off-by: Zachary T Welch <zw@superlucidity.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/flash/nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nand.c b/src/flash/nand.c index 2085028..77aa3e5 100644 --- a/src/flash/nand.c +++ b/src/flash/nand.c @@ -1620,7 +1620,7 @@ COMMAND_HANDLER(handle_nand_verify_command) } file.size -= bytes_read; - file.address += nand->page_size; + dev.address += nand->page_size; } if (nand_fileio_finish(&file) == ERROR_OK) |