Merge pull request #71 from mi-gri/patch-1

Bugfix for empty relay path
This commit is contained in:
Rysiek Labus (SQ9MDD) 2021-09-14 22:08:56 +02:00 committed by GitHub
commit 9cf3bca89b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -248,10 +248,10 @@ void prepareAPRSFrame(){
outString = ""; outString = "";
outString += Tcall; outString += Tcall;
if (relay_path){ if (relay_path.isEmpy()){
outString += ">APLO01," + relay_path + ":!";
}else{
outString += ">APLO01:!"; outString += ">APLO01:!";
}else{
outString += ">APLO01," + relay_path + ":!";
} }
if(gps_state && gps.location.isValid()){ if(gps_state && gps.location.isValid()){