From dea0c869f318b9d927072737cf048b1f2f05fc2a Mon Sep 17 00:00:00 2001 From: cziter15 Date: Sun, 16 Jun 2024 20:43:58 +0200 Subject: [PATCH] Fixes --- src/ksf/ksConstants.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,