[SX1280] meet cpp check

This commit is contained in:
Linar Yusupov 2025-03-02 11:40:49 +03:00
parent 34c262ed3f
commit 0226f10988

View file

@ -772,8 +772,8 @@ int16_t SX128x::setModem(ModemType_t modem) {
int16_t SX128x::getModem(ModemType_t* modem) {
RADIOLIB_ASSERT_PTR(modem);
uint8_t packetType = getPacketType();
switch(packetType) {
uint8_t pType = getPacketType();
switch(pType) {
case(RADIOLIB_SX128X_PACKET_TYPE_LORA):
*modem = ModemType_t::RADIOLIB_MODEM_LORA;
return(RADIOLIB_ERR_NONE);