From 18fefc0ca9b4a600f352de73a8f4927f271e89aa Mon Sep 17 00:00:00 2001 From: jgromes Date: Thu, 22 Dec 2022 18:17:41 +0100 Subject: [PATCH] [SX127x] Removed unnecessary volatile --- src/modules/SX127x/SX127x.cpp | 2 +- src/modules/SX127x/SX127x.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/SX127x/SX127x.cpp b/src/modules/SX127x/SX127x.cpp index 6cdb607f..9930841e 100644 --- a/src/modules/SX127x/SX127x.cpp +++ b/src/modules/SX127x/SX127x.cpp @@ -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; diff --git a/src/modules/SX127x/SX127x.h b/src/modules/SX127x/SX127x.h index ba33b78a..302fabf4 100644 --- a/src/modules/SX127x/SX127x.h +++ b/src/modules/SX127x/SX127x.h @@ -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.