Skip to content

Commit

Permalink
ESP-IDF 4.x expects seconds for esp_task_wdt_init(), not milliseconds. (
Browse files Browse the repository at this point in the history
  • Loading branch information
kpfleming committed Jun 21, 2024
1 parent 67bd5db commit 0a9703b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esphome/components/http_request/watchdog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0a9703b

Please sign in to comment.