Use DIO mode for normal operation; disable DIO before flashing. Use SYS_LED for indicating booting (slow), flashing (fast) and normal operation (on)

This commit is contained in:
feelfree69 committed 2026-01-22 19:38:17 +01:00
1 parent 1e8382bd56
commit 0345bf7bf2
4 files changed
+26 -1

No files matched your search

+3
View File
@@ -436,6 +436,9 @@ void handle_post(void)
flash_region.addr = CONFIG_START;
flash_sector_erase();
}
flash_init(0); // Re-initialize flash for non-DIO operation, otherwise flashing fails
set_sys_led_state(SYS_LED_FAST);
crc_value = 0;
bindex = 0;
write_len = 0;