Revert "Don't disable flash DIO operation before flashing"

This commit is contained in:
TylerDurden-23
2026-06-07 10:42:39 +02:00
committed by GitHub
parent 94e34a5991
commit 62065875e3
3 changed files with 5 additions and 0 deletions
+1
View File
@@ -1884,6 +1884,7 @@ void check_and_flash_update_image(void)
__xdata uint16_t j = 0;
__xdata uint8_t * __xdata bptr;
print_string("found update image!\nChecking integrity");
flash_init(0); // Re-initialize flash for non-DIO operation, otherwise flashing will fail
set_sys_led_state(SYS_LED_FAST);
crc_value = 0x0000;
for (i = 0; i < 1024; i++) {