From a511fe45adb43d6c1ddde118c0913e93ff16f1e0 Mon Sep 17 00:00:00 2001 From: Linar Yusupov Date: Sun, 2 Mar 2025 11:47:22 +0300 Subject: [PATCH] [SX1280] cleanup --- src/modules/SX128x/SX128x.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/SX128x/SX128x.cpp b/src/modules/SX128x/SX128x.cpp index d54b3266..3c18d68d 100644 --- a/src/modules/SX128x/SX128x.cpp +++ b/src/modules/SX128x/SX128x.cpp @@ -772,8 +772,7 @@ int16_t SX128x::setModem(ModemType_t modem) { int16_t SX128x::getModem(ModemType_t* modem) { RADIOLIB_ASSERT_PTR(modem); - uint8_t pType = getPacketType(); - switch(pType) { + switch(getPacketType()) { case(RADIOLIB_SX128X_PACKET_TYPE_LORA): *modem = ModemType_t::RADIOLIB_MODEM_LORA; return(RADIOLIB_ERR_NONE);