Commit 3547c87cae742114c9eafc51f84768e257563fe2

Authored by Hugo Stephens
1 parent a621482e
Exists in master

quit properly if selectserial returns error message

robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py
@@ -27,10 +27,10 @@ logging.info("Logging system active") @@ -27,10 +27,10 @@ logging.info("Logging system active")
27 27
28 datafeed = selectserial() 28 datafeed = selectserial()
29 29
30 -if datafeed == None: 30 +if datafeed == 'Sorry, no serial devices found.' or None:
31 logging.critical("Failed to open serial port") 31 logging.critical("Failed to open serial port")
32 sys.exit() 32 sys.exit()
33 - 33 +
34 if platform.system()=='Windows': 34 if platform.system()=='Windows':
35 os='Windows' 35 os='Windows'
36 else: 36 else: