From ca5baebda4682763d4754e443fad716fcfa6f7be Mon Sep 17 00:00:00 2001 From: KF7EEL Date: Thu, 24 Dec 2020 13:06:03 -0800 Subject: [PATCH] fix yet another typo --- hblink.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hblink.py b/hblink.py index ea7b86f..c608fee 100644 --- a/hblink.py +++ b/hblink.py @@ -146,11 +146,11 @@ def sendAprs(): AIS.sendall(str(dati[0])+">APRS,TCPIP*,qAC,"+str(CONFIG['APRS']['CALLSIGN'])+":!"+str(lat_utile)[:-2]+lat_verso+"/"+str(lon_utile)[:-1]+lon_verso+"r"+str(CONFIG['APRS']['MESSAGE'])+' RX: '+str(rx_utile)+' TX: '+str(tx_utile)) logging.info('APRS INVIATO/APRS Sent') -def aprs_upload(): - if CONFIG['APRS']['ENABLED']: - if int(CONFIG['APRS']['REPORT_INTERVAL']) >= 10: +def aprs_upload(config): + if config['APRS']['ENABLED']: + if int(config['APRS']['REPORT_INTERVAL']) >= 10: l=task.LoopingCall(sendAprs) - l.start(int(CONFIG['APRS']['REPORT_INTERVAL'])*60) + l.start(int(config['APRS']['REPORT_INTERVAL'])*60) else: l=task.LoopingCall(sendAprs) l.start(15*60)