minor cosmetic code fix

This commit is contained in:
richonguzman
2024-02-25 12:00:44 -03:00
parent 414b31d9b8
commit 72c16e1cd0
14 changed files with 24 additions and 11 deletions
+4 -2
View File
@@ -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);
}