mirror of
https://github.com/SlimeVR/SlimeVR-Tracker-ESP.git
synced 2026-04-06 02:01:57 +02:00
Make flashmode work in preinit()
This commit is contained in:
@@ -67,8 +67,9 @@ extern "C" void preinit(void) {
|
||||
// Boot into UART download mode
|
||||
Serialtemp.println("\r\n\r\nEntering safe mode due to repeated crashes.");
|
||||
Serialtemp.println("Entering flash mode...");
|
||||
Serialtemp.flush();
|
||||
Serialtemp.end();
|
||||
// Serial needs to be stay active for
|
||||
// rebootIntoUartDownloadMode to work.
|
||||
// Found out over testing.
|
||||
delay(1000);
|
||||
ESP.rebootIntoUartDownloadMode();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user