Update RF69.cpp

This commit is contained in:
Peter Buchegger 2024-01-11 17:51:39 +01:00 committed by GitHub
parent bf061c655f
commit 6600860915
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -375,7 +375,7 @@ bool RF69::fifoGet(volatile uint8_t* data, int totalLen, volatile int* rcvLen) {
// get the data
this->mod->SPIreadRegisterBurst(RADIOLIB_RF69_REG_FIFO, len, dataPtr);
(*rcvLen) += (len);
*rcvLen = *rcvLen + len;
// check if we're done
if(*rcvLen >= totalLen) {