flag services (avoid connecting to aprs network twice)

This commit is contained in:
Jakob Ketterl
2019-09-13 22:28:17 +02:00
parent 5bcad1ef2f
commit 311f22f6ba
3 changed files with 10 additions and 5 deletions

View File

@ -13,7 +13,7 @@ TFESC = 0xDD
class DirewolfConfig(object):
def getConfig(self, port):
def getConfig(self, port, is_service):
pm = PropertyManager.getSharedInstance()
config = """
@ -29,7 +29,7 @@ AGWPORT off
port=port, callsign=pm["aprs_callsign"]
)
if pm["aprs_igate_enabled"]:
if is_service and pm["aprs_igate_enabled"]:
config += """
IGSERVER {server}
IGLOGIN {callsign} {password}