mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-04-04 14:08:36 +00:00
update rssi and distance line
This commit is contained in:
parent
a401e577f6
commit
22aeb5389b
2 changed files with 6 additions and 3 deletions
|
|
@ -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 + "> ??????????";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue