code cleaning

This commit is contained in:
richonguzman 2024-06-07 00:10:04 -04:00
parent c89ca7316f
commit d75be8f007
2 changed files with 3 additions and 3 deletions

View file

@ -109,8 +109,7 @@ namespace APRS_IS_Utils {
String buildPacketToUpload(const String& packet) {
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(":"));
}
else {
} else {
return packet.substring(3, packet.indexOf(":")) + ",qAO," + Config.callsign + packet.substring(packet.indexOf(":"));
}
}

View file

@ -52,7 +52,8 @@ namespace GPS_Utils {
}
void generateBeacons() {
String beaconPacket = Config.callsign + ">APLRG1";
String beaconPacket = Config.callsign;
beaconPacket += ">APLRG1";
if (Config.beacon.path != "") {
beaconPacket += ",";
beaconPacket += Config.beacon.path;