This commit is contained in:
richonguzman
2023-07-30 23:53:59 -04:00
parent a8f013ba7d
commit 35499c36c6
11 changed files with 58 additions and 64 deletions
+8 -3
View File
@@ -90,9 +90,14 @@ String generateBeacon() {
beaconPacket += "a";
}
beaconPacket += Config.iGateComment;
} else { //stationMode 3 y 4
stationLatitude = processLatitudeAPRS(Config.digi.latitude);
stationLongitude = processLongitudeAPRS(Config.digi.longitude);
} else { //stationMode 3, 4 and 5
if (stationMode==5) {
stationLatitude = processLatitudeAPRS(currentWiFi->latitude);
stationLongitude = processLongitudeAPRS(currentWiFi->longitude);
} else {
stationLatitude = processLatitudeAPRS(Config.digi.latitude);
stationLongitude = processLongitudeAPRS(Config.digi.longitude);
}
beaconPacket = Config.callsign + ">APLRG1:=" + stationLatitude + "L" + stationLongitude + "#" + Config.digi.comment;
}
return beaconPacket;