Update SX127x.cpp

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

View file

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