Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions examples/companion_radio/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,4 +225,9 @@ void loop() {
ui_task.loop();
#endif
rtc_clock.tick();

#if defined(NRF52_PLATFORM)
board.sleep(1800);
Copy link
Contributor

@weebl2000 weebl2000 Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
board.sleep(1800);
if (!the_mesh.hasPendingWork()) {
board.sleep(1800);
}

Maybe?

Probably need to add hasPendingWork(), _mgr->getOutboundCount(0xFFFFFFFF) > 0 - not sure if it's actually useful.

#endif

}