if check fix

This commit is contained in:
Ed Sandor 2020-12-12 11:09:12 -07:00
parent 3435052e27
commit 1cc88ff362

View File

@ -62,7 +62,7 @@ IGLOGIN {callsign} {password}
if((len(comment) > 0) and ((comment[0] != '"') or (comment[len(comment)-1] != '"'))):
comment = "\"" + comment + "\""
else if(len(comment) > 0):
else if(len(comment) == 0):
comment = "\"\""
pbeacon= "PBEACON sendto=IG delay=0:30 every=60:00 symbol={symbol} lat={lat} long={lon} POWER={power} {height} {gain} {adir} {freq} {tone} {offset} comment={comment}".format(