From cea046008f63d4ff047e2bf84971f2426ff29739 Mon Sep 17 00:00:00 2001 From: Ondrej Jirman Date: Mon, 28 Jun 2021 15:36:58 +0200 Subject: [PATCH] Increase the default flashing area size to 0x2000 This does two things: - more reasonable default because stock firmware size is larger than the previous default - it will overwrite 0x3fff with 0xff, so that after flashing stock firmware the user firmware is automatically disabled --- usb-flasher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usb-flasher.c b/usb-flasher.c index d4234d2..8a907d4 100644 --- a/usb-flasher.c +++ b/usb-flasher.c @@ -591,7 +591,7 @@ int main(int ac, char* av[]) { char* rom_in = NULL; char* rom_out = NULL; - int size = 0x1200; + int size = 0x2000; int ret; while (1) {