]> git.sur5r.net Git - openocd/commitdiff
Sometime in the past, nand_fileio_finish started to return ERROR_OK (with the value...
authorStian Skjelsad <stian@nixia.no>
Sat, 18 Feb 2012 14:29:20 +0000 (15:29 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Wed, 22 Feb 2012 20:54:09 +0000 (20:54 +0000)
Change-Id: Ifb743c1617e2a6071a87c901fae8165969efcdbf
Signed-off-by: Stian Skjelstad <stian@nixia.no>
Reviewed-on: http://openocd.zylin.com/468
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/flash/nand/tcl.c

index 6f942d27f3d3dbf6902f1d3cc34e281f10ef9dcd..a06284d29b1e48b2487720decaec600947dbe4d5 100644 (file)
@@ -271,7 +271,7 @@ COMMAND_HANDLER(handle_nand_write_command)
                s.address += s.page_size;
        }
 
-       if (nand_fileio_finish(&s)) {
+       if (nand_fileio_finish(&s) == ERROR_OK) {
                command_print(CMD_CTX, "wrote file %s to NAND flash %s up to "
                        "offset 0x%8.8" PRIx32 " in %fs (%0.3f KiB/s)",
                        CMD_ARGV[1], CMD_ARGV[0], s.address, duration_elapsed(&s.bench),