diff options
-rw-r--r-- | nandtest.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -105,7 +105,7 @@ int erase_and_write(loff_t ofs, unsigned char *data, unsigned char *rbuf) } if (newstats.failed > oldstats.failed) { printf("\nECC failed at %08x\n", (unsigned) ofs); - oldstats.corrected = newstats.corrected; + oldstats.failed = newstats.failed; } if (len < meminfo.erasesize) exit(1); |