Skip to content

Commit

Permalink
Update SX127x.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
peterus authored Jan 11, 2024
1 parent 6600860 commit abfc91a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/SX127x/SX127x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit abfc91a

Please sign in to comment.