From: notaz Date: Mon, 21 Dec 2020 16:52:28 +0000 (+0200) Subject: don't try to reset flash unconditionally X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a2c48a5be076f5d40c52d9053f113fff8639a72;p=flashkit-mdc.git don't try to reset flash unconditionally because we can read/write SRAM now --- diff --git a/flashkit.c b/flashkit.c index 023d2d2..a2ebdb8 100644 --- a/flashkit.c +++ b/flashkit.c @@ -819,7 +819,9 @@ int main(int argc, char *argv[]) printf("flashkit id: %02x\n", id[0]); set_delay(fd, 1); - io->write_bus(fd, 0, 0xf0); // flash reset + + if (do_info || size_e || f_w) + io->write_bus(fd, 0, 0xf0); // flash reset if (do_info || size_e) read_info(fd);