Skip to content

Commit 10db48a

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 67eb009 commit 10db48a

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
@@ -1340,5 +1340,5 @@ bool MyMesh::hasPendingWork() const {
13401340
#if defined(WITH_BRIDGE)
13411341
if (bridge.isRunning()) return true; // bridge needs WiFi radio, can't sleep
13421342
#endif
1343-
return _mgr->getOutboundTotal() > 0;
1343+
return (_mgr->getOutboundTotal() > 0) || !radio_driver.isInRecvMode();
13441344
}

0 commit comments

Comments
 (0)