flag services (avoid connecting to aprs network twice)
This commit is contained in:
@ -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}
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user