Skip to content

Commit

Permalink
Small fix for write()
Browse files Browse the repository at this point in the history
Should use retries + 1 so there is at least 1 transmission, even if retries is set to 0
  • Loading branch information
TMRh20 committed Oct 1, 2023
1 parent 1b09063 commit 3a158f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nrf_to_nrf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3a158f8

Please sign in to comment.