From 3547c87cae742114c9eafc51f84768e257563fe2 Mon Sep 17 00:00:00 2001 From: Hugo Stephens Date: Fri, 9 Mar 2018 09:48:21 +0000 Subject: [PATCH] quit properly if selectserial returns error message --- robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py b/robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py index 728ff3f..35d2f07 100755 --- a/robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py +++ b/robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py @@ -27,10 +27,10 @@ logging.info("Logging system active") datafeed = selectserial() -if datafeed == None: +if datafeed == 'Sorry, no serial devices found.' or None: logging.critical("Failed to open serial port") sys.exit() - + if platform.system()=='Windows': os='Windows' else: -- libgit2 0.21.2