From 81e9d30287126a04d349eaf3ba4848444ba356cc Mon Sep 17 00:00:00 2001 From: KF7EEL Date: Wed, 23 Dec 2020 12:35:48 -0800 Subject: [PATCH] Update hblink.py Add ability to allow PEER packets on a "per MASTER" config --- hblink.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hblink.py b/hblink.py index 446c700..73c0a8b 100644 --- a/hblink.py +++ b/hblink.py @@ -141,9 +141,11 @@ def sendAprs(): rx_utile = dati[2][0:3]+'.'+dati[2][3:] tx_utile = dati[3][0:3]+'.'+dati[3][3:] - - AIS.sendall(str(dati[0])+">APRS,TCPIP*,qAC,"+str(file_config['APRS']['CALLSIGN'])+":!"+str(lat_utile)[:-2]+lat_verso+"/"+str(lon_utile)[:-1]+lon_verso+"r"+str(file_config['APRS']['MESSAGE'])+' RX: '+str(rx_utile)+' TX: '+str(tx_utile)) - logging.info('APRS INVIATO') + if self._config['APRS_ENABLED']: + AIS.sendall(str(dati[0])+">APRS,TCPIP*,qAC,"+str(file_config['APRS']['CALLSIGN'])+":!"+str(lat_utile)[:-2]+lat_verso+"/"+str(lon_utile)[:-1]+lon_verso+"r"+str(file_config['APRS']['MESSAGE'])+' RX: '+str(rx_utile)+' TX: '+str(tx_utile)) + logging.info('APRS INVIATO/APRS Sent') + else: + pass if file_config['APRS']['ENABLED']: if int(file_config['APRS']['REPORT_INTERVAL']) >= 10: