mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 07:28:10 +01:00
Don't disable idle task WDT when it's not enabled (#2856)
This commit is contained in:
parent
b89d0a9a73
commit
6d39f64be7
1 changed files with 3 additions and 3 deletions
|
@ -42,11 +42,11 @@ void arch_init() {
|
||||||
// Idle task watchdog is disabled on ESP-IDF
|
// Idle task watchdog is disabled on ESP-IDF
|
||||||
#elif defined(USE_ARDUINO)
|
#elif defined(USE_ARDUINO)
|
||||||
enableLoopWDT();
|
enableLoopWDT();
|
||||||
// Disable idle task watchdog on the core we're using (Arduino pins the process to a core)
|
// Disable idle task watchdog on the core we're using (Arduino pins the task to a core)
|
||||||
#if CONFIG_ARDUINO_RUNNING_CORE == 0
|
#if defined(CONFIG_ESP_TASK_WDT_CHECK_IDLE_TASK_CPU0) && CONFIG_ARDUINO_RUNNING_CORE == 0
|
||||||
disableCore0WDT();
|
disableCore0WDT();
|
||||||
#endif
|
#endif
|
||||||
#if CONFIG_ARDUINO_RUNNING_CORE == 1
|
#if defined(CONFIG_ESP_TASK_WDT_CHECK_IDLE_TASK_CPU1) && CONFIG_ARDUINO_RUNNING_CORE == 1
|
||||||
disableCore1WDT();
|
disableCore1WDT();
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue