Skip to content

Commit a445680

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 d3e4986 commit a445680

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)