From 548174b98e1c5d69a524829f79db5ca1b002fa99 Mon Sep 17 00:00:00 2001 From: Dimitris Mantzouranis Date: Sat, 5 Aug 2023 15:45:45 +0300 Subject: [PATCH] sonixflasher: wait when potentially unsupported chip is detected give the user some time to bail out --- sonixflasher.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sonixflasher.c b/sonixflasher.c index c8646d8..422f06c 100644 --- a/sonixflasher.c +++ b/sonixflasher.c @@ -475,10 +475,12 @@ int main(int argc, char* argv[]) if(vid == EVISION_VID && !reboot_requested) printf("Warning: eVision VID detected! You probably need to use the reboot option.\n"); if(vid == APPLE_VID && !reboot_requested) printf("Warning: Apple VID detected! You probably need to use the reboot option.\n"); printf("Warning: Flashing a non-sonix bootloader device, you are now on your own.\n"); + sleep(3); // Set max firmware to 64k, useful when flashing a Sonix Board that isnt in BL mode (Redragons, Keychrons) MAX_FIRMWARE = MAX_FIRMWARE_SN32F240; // Maybe add a param to override this (?) printf("Warning: We assume a ROM size of 64k.\n"); + sleep(3); } // Set max fw size depending on VID/PID