Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cziter15 committed Jun 15, 2024
1 parent 0cfa961 commit 4662124
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions src/ksf/ksConstants.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,17 @@ namespace ksf
void initializeFramework()
{
#ifdef ESP32
#if ( IDF_VERSION_MAJOR >= 4 )
/* Setup watchdog. */
esp_task_wdt_config_t twdt_config = {
.timeout_ms = KSF_WATCHDOG_TIMEOUT_SECS * 1000,
.idle_core_mask = (1 << CONFIG_SOC_CPU_CORES_NUM) - 1, // Bitmask of all cores
.trigger_panic = false,
};

esp_task_wdt_init(&twdt_config);
#else
// TODO: In case of esp32 arduino 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, // Bitmask of all cores
// .trigger_panic = false,
//};
//esp_task_wdt_init(&twdt_config);

/* Setup watchdog. */
esp_task_wdt_init(KSF_WATCHDOG_TIMEOUT_SECS, true);
#endif

/* Initialize filesystem. */
LittleFS.begin(true);
#endif
Expand Down

0 comments on commit 4662124

Please sign in to comment.