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}

View File

@ -196,6 +196,7 @@ class ServiceHandler(object):
d.set_secondary_demodulator(mode)
d.set_audio_compression("none")
d.set_samp_rate(source.getProps()["samp_rate"])
d.set_service()
d.start()
return d