only add OTA delay for ESP32

This commit is contained in:
proddy
2020-07-30 21:18:09 +02:00
parent c48e5bd518
commit b20c6d4c01

View File

@@ -777,7 +777,9 @@ void EMSESP::loop() {
// if we're doing an OTA upload, skip MQTT and EMS
if (system_.upload_status()) {
#if defined(ESP32)
delay(1); // slow down OTA update to avoid getting killed by task watchdog (task_wdt)
#endif
return;
}