mirror of
https://github.com/esphome/esphome.git
synced 2024-11-28 17:54:13 +01:00
ESP-IDF 4.x expects seconds for esp_task_wdt_init(), not milliseconds. (#6964)
This commit is contained in:
parent
ae2962259e
commit
96d63de292
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ void WatchdogManager::set_timeout_(uint32_t timeout_ms) {
|
|||
};
|
||||
esp_task_wdt_reconfigure(&wdt_config);
|
||||
#else
|
||||
esp_task_wdt_init(timeout_ms, true);
|
||||
esp_task_wdt_init(timeout_ms / 1000, true);
|
||||
#endif // ESP_IDF_VERSION_MAJOR
|
||||
#endif // USE_ESP32
|
||||
|
||||
|
|
Loading…
Reference in a new issue