Merge pull request #923 from peterus/peterus-patch-1

fix warning/error: compound assignment with 'volatile'-qualified left operand is deprecated
pull/928/head
Jan Gromeš 2024-01-11 18:20:33 +01:00 zatwierdzone przez GitHub
commit 7e95fdfe7b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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) {

Wyświetl plik

@ -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) {