diff --git a/src/ksf/ksConstants.cpp b/src/ksf/ksConstants.cpp index c9bf4d7..41f305c 100644 --- a/src/ksf/ksConstants.cpp +++ b/src/ksf/ksConstants.cpp @@ -12,6 +12,7 @@ #include #include #include + #include #include "sdkconfig.h" #elif ESP8266 #include @@ -40,7 +41,7 @@ namespace ksf void initializeFramework() { #if ESP32 - #ifdef CONFIG_SOC_CPU_CORES_NUM + #if (ESP_ARDUINO_VERSION_MAJOR >= 3) esp_task_wdt_config_t twdt_config = { .timeout_ms = KSF_WATCHDOG_TIMEOUT_SECS * 1000, .idle_core_mask = (1 << CONFIG_SOC_CPU_CORES_NUM) - 1,