[SX127x] Removed unnecessary volatile

ax5x43
jgromes 2022-12-22 18:17:41 +01:00
rodzic 8d02fda5a1
commit 18fefc0ca9
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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;

Wyświetl plik

@ -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.