diff --git a/src/modules/SX126x/SX126x.cpp b/src/modules/SX126x/SX126x.cpp index 11f19193..4ca30aab 100644 --- a/src/modules/SX126x/SX126x.cpp +++ b/src/modules/SX126x/SX126x.cpp @@ -1216,13 +1216,13 @@ uint8_t SX126x::random() { void SX126x::setDirectAction(void (*func)(void)) { // SX126x is unable to perform direct mode reception // this method is implemented only for PhysicalLayer compatibility - return(0); + (void)func; } void SX126x::readBit(RADIOLIB_PIN_TYPE pin) { // SX126x is unable to perform direct mode reception // this method is implemented only for PhysicalLayer compatibility - return(0); + (void)pin; } int16_t SX126x::setTCXO(float voltage, uint32_t delay) {