From 3a158f89a028ae74ae02ebd0341f05ad6cec1121 Mon Sep 17 00:00:00 2001 From: TMRh20 Date: Sat, 30 Sep 2023 22:39:14 -0600 Subject: [PATCH] Small fix for write() Should use retries + 1 so there is at least 1 transmission, even if retries is set to 0 --- src/nrf_to_nrf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nrf_to_nrf.cpp b/src/nrf_to_nrf.cpp index 0c24762..f1b1988 100644 --- a/src/nrf_to_nrf.cpp +++ b/src/nrf_to_nrf.cpp @@ -359,7 +359,7 @@ bool nrf_to_nrf::write(void* buf, uint8_t len, bool multicast, bool doEncryption } #endif - for (int i = 0; i < retries; i++) { + for (int i = 0; i < (retries + 1); i++) { ARC = i; if (DPL) { radioData[0] = len;