summaryrefslogtreecommitdiff
path: root/src/flash
diff options
context:
space:
mode:
authorDean Glazeski <dnglaze@gmail.com>2009-11-19 17:12:23 -0600
committerZachary T Welch <zw@superlucidity.net>2009-11-19 15:25:18 -0800
commit31fb7788a605fe1c0c405444b5bab51a7e42d481 (patch)
treef80a27e06e6c403fe9ab8b76b0a055c7a0a6fa72 /src/flash
parent4b18ef15a36a8b618c18ab18d0ed8596ecf9eaaa (diff)
downloadopenocd_libswd-31fb7788a605fe1c0c405444b5bab51a7e42d481.tar.gz
openocd_libswd-31fb7788a605fe1c0c405444b5bab51a7e42d481.tar.bz2
openocd_libswd-31fb7788a605fe1c0c405444b5bab51a7e42d481.tar.xz
openocd_libswd-31fb7788a605fe1c0c405444b5bab51a7e42d481.zip
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/flash')
-rw-r--r--src/flash/nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nand.c b/src/flash/nand.c
index 2085028c..77aa3e57 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)