diff options
Diffstat (limited to 'w39v080fa.c')
-rw-r--r-- | w39v080fa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/w39v080fa.c b/w39v080fa.c index ba32add9..7b827f82 100644 --- a/w39v080fa.c +++ b/w39v080fa.c @@ -180,8 +180,8 @@ int erase_winbond_fwhub(struct flashchip *flash) printf("\n"); for (i = 0; i < total_size; i++) { - if (bios[i] != 0xff) { - fprintf(stderr, "Error: Flash chip erase failed at 0x%08x(0x%02x)\n", i, bios[i]); + if (chip_readb(bios + i) != 0xff) { + fprintf(stderr, "Error: Flash chip erase failed at 0x%08x(0x%02x)\n", i, chip_readb(bios + i)); return -1; } } |