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 dff2ded..2092ef3 100755 --- a/robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py +++ b/robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py @@ -14,14 +14,19 @@ import numpy import os import platform import sys +import easygui from serialselect import selectserial from colours import * datafeed = selectserial() -if datafeed == None: - print("Exiting...") + +if type(datafeed) is str: + easygui.msgbox("Failed to open serial port:\n" + datafeed, "Fatal error") + sys.exit() +elif datafeed == None: + easygui.msgbox("Failed to open serial port for unknown reason!", "Fatal error") sys.exit() class Series: -- libgit2 0.21.2