Merge pull request #923 from peterus/peterus-patch-1
fix warning/error: compound assignment with 'volatile'-qualified left operand is deprecated
This commit is contained in:
commit
7e95fdfe7b
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue