Skip to content

Commit

Permalink
Merge pull request #923 from peterus/peterus-patch-1
Browse files Browse the repository at this point in the history
fix warning/error: compound assignment with 'volatile'-qualified left operand is deprecated
  • Loading branch information
jgromes authored Jan 11, 2024
2 parents bf061c6 + abfc91a commit 7e95fdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/RF69/RF69.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
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 7e95fdf

Please sign in to comment.