1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-20 20:22:27 +01:00

Increase task wdt timeout for ESP32/ESP32-C3 (#2096)

This commit is contained in:
Stefan Agner
2021-08-10 11:10:52 +02:00
committed by GitHub
parent 6a2f0f5143
commit f94c221a9a
4 changed files with 37 additions and 6 deletions

View File

@@ -53,6 +53,7 @@ void Application::setup() {
}
this->app_state_ = new_app_state;
yield();
this->feed_wdt();
} while (!component->can_proceed());
}
@@ -117,12 +118,7 @@ void ICACHE_RAM_ATTR HOT Application::feed_wdt() {
static uint32_t LAST_FEED = 0;
uint32_t now = millis();
if (now - LAST_FEED > 3) {
#ifdef ARDUINO_ARCH_ESP8266
ESP.wdtFeed();
#endif
#ifdef ARDUINO_ARCH_ESP32
yield();
#endif
this->feed_wdt_arch_();
LAST_FEED = now;
#ifdef USE_STATUS_LED
if (status_led::global_status_led != nullptr) {