From 65e175298459403770d64acdc4843e57dc7dfedc Mon Sep 17 00:00:00 2001 From: tuxphone <67556506+tuxphone@users.noreply.github.com> Date: Mon, 14 Sep 2020 17:47:53 +0200 Subject: [PATCH] Update main.cpp --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 0dbafb8..f33d482 100644 --- a/main.cpp +++ b/main.cpp @@ -164,7 +164,7 @@ void OnRxDone( uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr ) if (!found){ state=TX; // will repeat package receivedID[receivedCount] = x; // add ID to received list - (receivedCount < (ID_BUFFER_SIZE - 1) ) ? receivedCount++ : receivedCount = 0; // if counter = max, overwrite first entry in list, reset counter + (receivedCount < (ID_BUFFER_SIZE - 1) ) ? receivedCount++ : receivedCount = 0; // if counter = max, reset counter. New entries will overwrite. } else{ #ifndef SILENT