Skip to content

Commit 5a67386

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 9a042e4 commit 5a67386

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

11201120
// To check if there is pending work
11211121
bool MyMesh::hasPendingWork() const {
1122-
return _mgr->getOutboundCount(0xFFFFFFFF) > 0;
1122+
return (_mgr->getOutboundCount(0xFFFFFFFF) > 0) || !radio_driver.isInRecvMode();
11231123
}

0 commit comments

Comments
 (0)