less lora state validations

This commit is contained in:
richonguzman 2024-05-13 18:12:51 -04:00
parent 0a15813ef2
commit bee09386e1

View file

@ -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();