Commit 3547c87cae742114c9eafc51f84768e257563fe2
1 parent
a621482e
Exists in
master
quit properly if selectserial returns error message
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py
| ... | ... | @@ -27,10 +27,10 @@ logging.info("Logging system active") |
| 27 | 27 | |
| 28 | 28 | datafeed = selectserial() |
| 29 | 29 | |
| 30 | -if datafeed == None: | |
| 30 | +if datafeed == 'Sorry, no serial devices found.' or None: | |
| 31 | 31 | logging.critical("Failed to open serial port") |
| 32 | 32 | sys.exit() |
| 33 | - | |
| 33 | + | |
| 34 | 34 | if platform.system()=='Windows': |
| 35 | 35 | os='Windows' |
| 36 | 36 | else: | ... | ... |