mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-08-12 03:43:09 +02:00
update rssi and distance line
This commit is contained in:
Binary file not shown.
+6
-3
@@ -197,12 +197,15 @@ void typeOfPacket(String packet, String packetType) {
|
||||
} else if (packet.indexOf(":!") >= 10 || packet.indexOf(":=") >= 10) {
|
||||
sixthLine = sender + "> GPS BEACON";
|
||||
GPS_Utils::getDistance(packet);
|
||||
seventhLine = "RSSI:" + String(rssi) + "dBm ";
|
||||
if (distance.indexOf(".") == 2) {
|
||||
seventhLine = "RSSI:" + String(rssi) + "dBm";
|
||||
if (rssi <= -100) {
|
||||
seventhLine += " ";
|
||||
} else if (distance.indexOf(".") == 1) {
|
||||
} else {
|
||||
seventhLine += " ";
|
||||
}
|
||||
if (distance.indexOf(".") == 1) {
|
||||
seventhLine += " ";
|
||||
}
|
||||
seventhLine += "D:" + distance + "km";
|
||||
} else {
|
||||
sixthLine = sender + "> ??????????";
|
||||
|
||||
Reference in New Issue
Block a user