mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-09-21 10:26:45 +00:00
Remove the watchdog feeding operation from each iteration of the loop to reduce power consumption.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user