[SX127x] Removed unnecessary volatile

This commit is contained in:
jgromes 2022-12-22 18:17:41 +01:00
parent 8d02fda5a1
commit 18fefc0ca9
2 changed files with 2 additions and 2 deletions

View file

@ -462,7 +462,7 @@ void SX127x::clearFifoFullAction() {
_mod->SPIsetRegValue(RADIOLIB_SX127X_REG_DIO_MAPPING_1, 0x00, 5, 4);
}
bool SX127x::fifoAdd(uint8_t* data, int totalLen, volatile int* remLen) {
bool SX127x::fifoAdd(uint8_t* data, int totalLen, int* remLen) {
// subtract first (this may be the first time we get to modify the remaining length)
*remLen -= RADIOLIB_SX127X_FIFO_THRESH - 1;

View file

@ -776,7 +776,7 @@ class SX127x: public PhysicalLayer {
\returns True when a complete packet is sent, false if more data is needed.
*/
bool fifoAdd(uint8_t* data, int totalLen, volatile int* remLen);
bool fifoAdd(uint8_t* data, int totalLen, int* remLen);
/*!
\brief Set interrupt service routine function to call when FIFO is sufficently full to read.