[LoRaWAN] Fixed unused variable warning on non-EEPROM boards

This commit is contained in:
jgromes 2023-11-18 16:38:03 +01:00
parent 0dbe05229a
commit 713162fcc7

View file

@ -221,6 +221,8 @@ int16_t LoRaWANNode::beginOTAA(uint64_t joinEUI, uint64_t devEUI, uint8_t* nwkKe
// the device has joined already, we can just pull the data from persistent storage // the device has joined already, we can just pull the data from persistent storage
return(this->restore()); return(this->restore());
} }
#else
(void)force;
#endif #endif
// set the physical layer configuration // set the physical layer configuration
@ -461,6 +463,8 @@ int16_t LoRaWANNode::beginABP(uint32_t addr, uint8_t* nwkSKey, uint8_t* appSKey,
// the device has joined already, we can just pull the data from persistent storage // the device has joined already, we can just pull the data from persistent storage
return(this->restore()); return(this->restore());
} }
#else
(void)force;
#endif #endif
this->devAddr = addr; this->devAddr = addr;