mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-01-22 16:50:16 +01:00
less lora state validations
This commit is contained in:
parent
0a15813ef2
commit
bee09386e1
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue