diff options
Diffstat (limited to 'en29f002a.c')
-rw-r--r-- | en29f002a.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/en29f002a.c b/en29f002a.c index f4242f596..b89eb316f 100644 --- a/en29f002a.c +++ b/en29f002a.c @@ -98,7 +98,10 @@ int write_en29f002a(struct flashchip *flash, uint8_t *buf) //chip_writeb(0xF0, bios); programmer_delay(10); - erase_chip_jedec(flash); + if (erase_chip_jedec(flash)) { + fprintf(stderr, "ERASE FAILED!\n"); + return -1; + } printf("Programming page: "); for (i = 0; i < total_size; i++) { |