Browse Source
Merge pull request #2952 from Quency-D/fix-ex-watchdog
fix repeater watchdog
pull/2897/head
Liam Cottle
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
0 additions and
3 deletions
-
examples/simple_repeater/main.cpp
|
|
@ -160,9 +160,6 @@ void loop() { |
|
|
external_watchdog.loop(); |
|
|
external_watchdog.loop(); |
|
|
#endif |
|
|
#endif |
|
|
if (the_mesh.getNodePrefs()->powersaving_enabled && !the_mesh.hasPendingWork()) { |
|
|
if (the_mesh.getNodePrefs()->powersaving_enabled && !the_mesh.hasPendingWork()) { |
|
|
#ifdef HAS_EXTERNAL_WATCHDOG |
|
|
|
|
|
external_watchdog.feed(); |
|
|
|
|
|
#endif |
|
|
|
|
|
#if defined(NRF52_PLATFORM) |
|
|
#if defined(NRF52_PLATFORM) |
|
|
board.sleep(0); // nrf ignores seconds param, sleeps whenever possible
|
|
|
board.sleep(0); // nrf ignores seconds param, sleeps whenever possible
|
|
|
#else |
|
|
#else |
|
|
|