This commit is contained in:
KF7EEL 2021-04-24 11:23:29 -07:00
parent 5aa8a14269
commit 7002c79c8b
1 changed files with 2 additions and 2 deletions

View File

@ -885,9 +885,9 @@ def aprs_rx(aprs_rx_login, aprs_passcode, aprs_server, aprs_port, aprs_filter, u
else:
AIS.connect()
print('Connecting to APRS-IS')
if int(CONFIG['GPS_DATA']['IGATE_BEACON_TIME'] == 0:
if int(CONFIG['GPS_DATA']['IGATE_BEACON_TIME']) == 0:
logger.info('APRS beacon disabled')
if int(CONFIG['GPS_DATA']['IGATE_BEACON_TIME'] != 0:
if int(CONFIG['GPS_DATA']['IGATE_BEACON_TIME']) != 0:
aprs_beacon=task.LoopingCall(aprs_beacon_send)
aprs_beacon.start(int(CONFIG['GPS_DATA']['IGATE_BEACON_TIME'])*60)
AIS.consumer(aprs_process, raw=True, immortal=False)