mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-26 11:05:43 +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);
|
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user