Skip to content

Commit f6e7736

Browse files
committed
simple_repeater: Include ongoing RX processing in hasPendingWork()
If the radio driver state machine is not in receive mode, this means that processing of a packet is still in progress and we are not in an idle state. Signed-off-by: Frieder Schrempf <frieder@fris.de>
1 parent f465ebb commit f6e7736

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

examples/simple_repeater/MyMesh.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,5 +1222,5 @@ bool MyMesh::hasPendingWork() const {
12221222
#if defined(WITH_BRIDGE)
12231223
if (bridge.isRunning()) return true; // bridge needs WiFi radio, can't sleep
12241224
#endif
1225-
return _mgr->getOutboundCount(0xFFFFFFFF) > 0;
1225+
return (_mgr->getOutboundCount(0xFFFFFFFF) > 0) || !radio_driver.isInRecvMode();
12261226
}

0 commit comments

Comments
 (0)