Implemented receiver detection correctly

Develop
Sven Steudte 2017-09-19 09:27:18 +02:00
rodzic c6e9775e66
commit c8fd9598eb
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -79,7 +79,10 @@ def received_data(data):
try: try:
call = m.group(1) call = m.group(1)
aprs = m.group(3) aprs = m.group(3)
receiver = args.call if len(m.group(2)) > 0:
receiver = m.group(2).split(',')[-1]
else:
receiver = args.call
except: except:
return # message format incorrect (probably no APRS message or line cut off too short) return # message format incorrect (probably no APRS message or line cut off too short)