[SX1280] cleanup
This commit is contained in:
parent
0226f10988
commit
a511fe45ad
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue