Update main.cpp

This commit is contained in:
tuxphone 2020-09-14 17:47:53 +02:00 committed by GitHub
parent 56dda18433
commit 65e1752984
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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