Fixed decoder loop bug

pull/4/head
Sven Steudte 2018-07-01 06:10:18 +02:00
rodzic 63f9d26463
commit 4131dfe488
1 zmienionych plików z 3 dodań i 6 usunięć

Wyświetl plik

@ -153,14 +153,11 @@ if args.device == 'I': # Source APRS-IS
except UnicodeDecodeError:
pass
# Watchdog reload
if '# aprsc' in buf:
if '# aprsc' in buf: # Watchdog reload
print('Ping from APRS-IS')
wdg = time.time() + 30
continue
# Data handling
received_data(buf)
else: # Data handling
received_data(buf)
# Watchdog reconnection
if wdg < time.time():