From 450a46af844c6f6c74a47be9c67b2d42f9b5d372 Mon Sep 17 00:00:00 2001 From: jgromes Date: Mon, 14 Jun 2021 21:20:21 +0200 Subject: [PATCH] [SX126x] Fixed warnings --- src/modules/SX126x/SX126x.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {