try-out WDT timer issue --> needs revert

This commit is contained in:
mverch67 2025-07-29 21:07:28 +02:00
parent 6cdb92b7a8
commit 5afc43ebc1

View File

@ -180,10 +180,10 @@ void esp32Setup()
assert(res == ESP_OK); assert(res == ESP_OK);
#else #else
res = esp_task_wdt_init(APP_WATCHDOG_SECS, true); res = esp_task_wdt_init(APP_WATCHDOG_SECS, true);
assert(res == ESP_OK); // assert(res == ESP_OK);
#endif #endif
res = esp_task_wdt_add(NULL); res = esp_task_wdt_add(NULL);
assert(res == ESP_OK); // assert(res == ESP_OK);
#ifdef HAS_32768HZ #ifdef HAS_32768HZ
enableSlowCLK(); enableSlowCLK();
@ -193,7 +193,11 @@ void esp32Setup()
/// loop code specific to ESP32 targets /// loop code specific to ESP32 targets
void esp32Loop() void esp32Loop()
{ {
esp_task_wdt_reset(); // service our app level watchdog +if (esp_task_wdt_reset() != ESP_OK)
{
+LOG_ERROR("Failed to reset task watchdog");
+
}
// for debug printing // for debug printing
// radio.radioIf.canSleep(); // radio.radioIf.canSleep();