From 0a980eb2ced40368bbf96f874a6621179ff8acd3 Mon Sep 17 00:00:00 2001 From: TMRh20 Date: Mon, 18 Mar 2024 01:52:45 -0600 Subject: [PATCH] Only delay if no action - Only delay if no IRQ and no radio data available --- RF24Gateway.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/RF24Gateway.cpp b/RF24Gateway.cpp index 9de815c..99939f7 100644 --- a/RF24Gateway.cpp +++ b/RF24Gateway.cpp @@ -349,9 +349,11 @@ void ESBGateway::poll(uint32_t waitDelay) handleRadioIn(); handleRadioOut(); } + else { + delay(2); + } handleRX(); handleRadioOut(); - delay(1); } /***************************************************************************************/