Reinitialize WDT at runtime

- This is needed because of some issues when compiling without using
menuconfig. Maybe there is a way to do this modifying sdkconfig.defaults
when still inside Docker
This commit is contained in:
2025-10-15 13:38:05 +02:00
parent d49c69f647
commit eb897dca9e
+3 -1
View File
@@ -17,7 +17,9 @@ static void watchdogTask(void *pvParameters) {
.idle_core_mask = 0,
.trigger_panic = true,
};
esp_task_wdt_init(&twdt_config);
ESP_ERROR_CHECK(esp_task_wdt_deinit());
ESP_ERROR_CHECK(esp_task_wdt_init(&twdt_config));
ESP_ERROR_CHECK(esp_task_wdt_add(NULL));
const TickType_t keepAlivePeriod = pdMS_TO_TICKS(8000);