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

ESP-IDF 4.x expects seconds for esp_task_wdt_init(), not milliseconds. (#6964)

This commit is contained in:
Kevin P. Fleming
2024-06-21 17:28:11 -04:00
committed by GitHub
parent 67bd5db6d6
commit 0a9703bff9

View File

@@ -46,7 +46,7 @@ void WatchdogManager::set_timeout_(uint32_t timeout_ms) {
}; };
esp_task_wdt_reconfigure(&wdt_config); esp_task_wdt_reconfigure(&wdt_config);
#else #else
esp_task_wdt_init(timeout_ms, true); esp_task_wdt_init(timeout_ms / 1000, true);
#endif // ESP_IDF_VERSION_MAJOR #endif // ESP_IDF_VERSION_MAJOR
#endif // USE_ESP32 #endif // USE_ESP32