mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-03 04:15:53 +00:00
try-out WDT timer issue --> needs revert
This commit is contained in:
parent
6cdb92b7a8
commit
5afc43ebc1
@ -180,10 +180,10 @@ void esp32Setup()
|
||||
assert(res == ESP_OK);
|
||||
#else
|
||||
res = esp_task_wdt_init(APP_WATCHDOG_SECS, true);
|
||||
assert(res == ESP_OK);
|
||||
// assert(res == ESP_OK);
|
||||
#endif
|
||||
res = esp_task_wdt_add(NULL);
|
||||
assert(res == ESP_OK);
|
||||
// assert(res == ESP_OK);
|
||||
|
||||
#ifdef HAS_32768HZ
|
||||
enableSlowCLK();
|
||||
@ -193,7 +193,11 @@ void esp32Setup()
|
||||
/// loop code specific to ESP32 targets
|
||||
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
|
||||
// radio.radioIf.canSleep();
|
||||
|
Loading…
Reference in New Issue
Block a user