From bee09386e1126cd9fd3f09878bcf3f13ca4331d0 Mon Sep 17 00:00:00 2001 From: richonguzman Date: Mon, 13 May 2024 18:12:51 -0400 Subject: [PATCH] less lora state validations --- src/lora_utils.cpp | 6 ------ 1 file changed, 6 deletions(-) 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();