Skip to content

Commit

Permalink
Only delay if no action
Browse files Browse the repository at this point in the history
- Only delay if no IRQ and no radio data available
  • Loading branch information
TMRh20 committed Mar 18, 2024
1 parent 19c1c6a commit 0a980eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion RF24Gateway.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,11 @@ void ESBGateway<mesh_t, network_t, radio_t>::poll(uint32_t waitDelay)
handleRadioIn();
handleRadioOut();
}
else {
delay(2);
}
handleRX();
handleRadioOut();
delay(1);
}

/***************************************************************************************/
Expand Down

0 comments on commit 0a980eb

Please sign in to comment.