diff --git a/dstat-interface/dstat-interface/dstat_comm.py b/dstat-interface/dstat-interface/dstat_comm.py index 8b45b2a1a37afcff7e9b6da21d011f7934bd1bcf..645f0af0f77782581adf16e0ddfe6caa100e2805 100644 --- a/dstat-interface/dstat-interface/dstat_comm.py +++ b/dstat-interface/dstat-interface/dstat_comm.py @@ -45,12 +45,12 @@ def version_check(ser_port): """ ser = delayedSerial(ser_port, 1024000, timeout=1) ser.write("ck") - + ser.flushInput() ser.write('!') while not ser.read().startswith("C"): - pass + ser.write('!') ser.write('V') for line in ser: if line.startswith('V'):