Browse Source

Remove the watchdog feeding operation from each iteration of the loop to reduce power consumption.

pull/2952/head
Quency-D 1 week ago
parent
commit
4d0ba1516c
  1. 3
      examples/simple_repeater/main.cpp

3
examples/simple_repeater/main.cpp

@ -160,9 +160,6 @@ void loop() {
external_watchdog.loop();
#endif
if (the_mesh.getNodePrefs()->powersaving_enabled && !the_mesh.hasPendingWork()) {
#ifdef HAS_EXTERNAL_WATCHDOG
external_watchdog.feed();
#endif
#if defined(NRF52_PLATFORM)
board.sleep(0); // nrf ignores seconds param, sleeps whenever possible
#else

Loading…
Cancel
Save