mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-07-03 08:21:35 +02:00
minor cosmetic code fix
This commit is contained in:
+4
-2
@@ -24,6 +24,7 @@ bool enableInterrupt = true;
|
||||
int rssi, freqError;
|
||||
float snr;
|
||||
|
||||
|
||||
namespace LoRa_Utils {
|
||||
|
||||
void setFlag(void) {
|
||||
@@ -181,16 +182,17 @@ namespace LoRa_Utils {
|
||||
}
|
||||
}
|
||||
#endif
|
||||
// // // // // //
|
||||
|
||||
if ((loraPacket.indexOf("\0")!=-1) || (loraPacket.indexOf("\r")!=-1) || (loraPacket.indexOf("\n")!=-1)) {
|
||||
loraPacket = packetSanitization(loraPacket);
|
||||
}
|
||||
// // // // // //
|
||||
|
||||
#ifndef TextSerialOutputForApp
|
||||
if (loraPacket!="") {
|
||||
Serial.println("(RSSI:" +String(rssi) + " / SNR:" + String(snr) + " / FreqErr:" + String(freqError) + ")");
|
||||
}
|
||||
#endif
|
||||
|
||||
if (Config.syslog.active && (stationMode==1 || stationMode==2 || (stationMode==5 && WiFi.status()==WL_CONNECTED)) && loraPacket!="") {
|
||||
SYSLOG_Utils::log("Rx", loraPacket, rssi, snr, freqError);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user