mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-28 05:06:32 +00:00
Fix ESP32 restart hang when USE_EMERGENCY_RESET is enabled
This commit is contained in:
parent
789c3acf38
commit
21c0200bd7
@ -303,6 +303,11 @@ void EmergencyReset(void) {
|
||||
}
|
||||
}
|
||||
while (Serial.available()) { Serial.read(); } // Flush input buffer
|
||||
#ifdef ESP32
|
||||
delay(10); // Allow time to cleanup queues - if not used hangs ESP32
|
||||
Serial.end();
|
||||
delay(10); // Allow time to cleanup queues - if not used hangs ESP32
|
||||
#endif // ESP32
|
||||
}
|
||||
#endif // USE_EMERGENCY_RESET
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user