Skip to content

Commit

Permalink
sonixflasher: wait when potentially unsupported chip is detected
Browse files Browse the repository at this point in the history
give the user some time to bail out
  • Loading branch information
dexter93 committed Aug 6, 2023
1 parent ccfae14 commit 548174b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sonixflasher.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 548174b

Please sign in to comment.