code cleaning
This commit is contained in:
parent
c89ca7316f
commit
d75be8f007
|
|
@ -109,8 +109,7 @@ namespace APRS_IS_Utils {
|
||||||
String buildPacketToUpload(const String& packet) {
|
String buildPacketToUpload(const String& packet) {
|
||||||
if (!(Config.aprs_is.active && Config.digi.mode == 0)) { // Check if NOT only IGate
|
if (!(Config.aprs_is.active && Config.digi.mode == 0)) { // Check if NOT only IGate
|
||||||
return packet.substring(3, packet.indexOf(":")) + ",qAR," + Config.callsign + packet.substring(packet.indexOf(":"));
|
return packet.substring(3, packet.indexOf(":")) + ",qAR," + Config.callsign + packet.substring(packet.indexOf(":"));
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
return packet.substring(3, packet.indexOf(":")) + ",qAO," + Config.callsign + packet.substring(packet.indexOf(":"));
|
return packet.substring(3, packet.indexOf(":")) + ",qAO," + Config.callsign + packet.substring(packet.indexOf(":"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,8 @@ namespace GPS_Utils {
|
||||||
}
|
}
|
||||||
|
|
||||||
void generateBeacons() {
|
void generateBeacons() {
|
||||||
String beaconPacket = Config.callsign + ">APLRG1";
|
String beaconPacket = Config.callsign;
|
||||||
|
beaconPacket += ">APLRG1";
|
||||||
if (Config.beacon.path != "") {
|
if (Config.beacon.path != "") {
|
||||||
beaconPacket += ",";
|
beaconPacket += ",";
|
||||||
beaconPacket += Config.beacon.path;
|
beaconPacket += Config.beacon.path;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue