mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 16:59:50 +03:00
only add OTA delay for ESP32
This commit is contained in:
@@ -777,7 +777,9 @@ void EMSESP::loop() {
|
|||||||
|
|
||||||
// if we're doing an OTA upload, skip MQTT and EMS
|
// if we're doing an OTA upload, skip MQTT and EMS
|
||||||
if (system_.upload_status()) {
|
if (system_.upload_status()) {
|
||||||
|
#if defined(ESP32)
|
||||||
delay(1); // slow down OTA update to avoid getting killed by task watchdog (task_wdt)
|
delay(1); // slow down OTA update to avoid getting killed by task watchdog (task_wdt)
|
||||||
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user