fix: use path from config everywhere

This commit is contained in:
SQ2CPA 2024-04-04 17:56:37 +02:00
parent c1cc7c9ab0
commit c8cde0a404
2 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ namespace APRS_IS_Utils {
for (int i = sender.length(); i < 9; i++) {
sender += ' ';
}
LoRa_Utils::sendNewPacket("APRS", Config.callsign + ">APLRG1,RFONLY,WIDE1-1::" + sender + ":" + ackMessage);
LoRa_Utils::sendNewPacket("APRS", Config.callsign + ">APLRG1," + Config.beacon.path + "::" + sender + ":" + ackMessage);
receivedMessage = packet.substring(packet.indexOf(":") + 1, packet.indexOf("{"));
}
else {

View File

@ -41,7 +41,7 @@ namespace QUERY_Utils {
if (queryOrigin == "APRSIS") {
return Config.callsign + ">APLRG1,TCPIP,qAC::" + station + ":" + answer;// + "\n";
} else { //} if (queryOrigin == "LoRa") {
return Config.callsign + ">APLRG1,RFONLY,WIDE1-1::" + station + ":" + answer;
return Config.callsign + ">APLRG1," + Config.beacon.path + "::" + station + ":" + answer;
}
}