diff --git a/src/lora_utils.cpp b/src/lora_utils.cpp index a38c42c..0450aa2 100644 --- a/src/lora_utils.cpp +++ b/src/lora_utils.cpp @@ -119,10 +119,6 @@ namespace LoRa_Utils { } Utils::print("---> LoRa Packet Tx : "); Utils::println(newPacket); - } else if (state == RADIOLIB_ERR_PACKET_TOO_LONG) { - Utils::println(F("too long!")); - } else if (state == RADIOLIB_ERR_TX_TIMEOUT) { - Utils::println(F("timeout!")); } else { Utils::print(F("failed, code ")); Utils::println(String(state)); @@ -193,8 +189,6 @@ namespace LoRa_Utils { lastRxTime = millis(); return loraPacket; } - } else if (state == RADIOLIB_ERR_RX_TIMEOUT) { - // timeout occurred while waiting for a packet } else if (state == RADIOLIB_ERR_CRC_MISMATCH) { rssi = radio.getRSSI(); snr = radio.getSNR();