Skip to content

Commit fb77a0b

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 2a681f5 commit fb77a0b

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
@@ -1219,5 +1219,5 @@ void MyMesh::loop() {
12191219

12201220
// To check if there is pending work
12211221
bool MyMesh::hasPendingWork() const {
1222-
return _mgr->getOutboundCount(0xFFFFFFFF) > 0;
1222+
return (_mgr->getOutboundCount(0xFFFFFFFF) > 0) || !radio_driver.isInRecvMode();
12231223
}

0 commit comments

Comments
 (0)