Ensure rx_ssdv exits if no data coming in, to avoid filling logs eith error messages

picamera2
Mark Jessop 2022-12-31 16:22:08 +10:30
rodzic dc63c0c78d
commit 31ef4b268b
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -167,6 +167,12 @@ while True:
# logging.critical("Caught EOF. Exiting.")
# sys.exit(1)
if data == b'':
# EOF! Quit.
logging.critical("EOF on stdin, possible rtl_sdr failure? Exiting.")
sys.exit(1)
try:
packet_type = decode_packet_type(data)