diff --git a/dstat_interface/dstat_comm.py b/dstat_interface/dstat_comm.py index f18fbe0531cf94a5b6618f74da1654e08bb4796c..4667581b3ea166bf63e754724b0786194055e894 100644 --- a/dstat_interface/dstat_comm.py +++ b/dstat_interface/dstat_comm.py @@ -439,11 +439,14 @@ class Experiment(object): data = self.data_handler( (scan, self.serial.read(size=self.databytes))) self.data_pipe.send(data) - elif line.startswith('S'): - self.scan += 1 + + elif line.lstrip().startswith('S'): + scan += 1 + elif line.lstrip().startswith("#"): _logger.error("".join( ("DSTAT: ",line.lstrip().rstrip())), "INFO") + elif line.lstrip().startswith("no"): _logger.error("".join( ("DSTAT: ",line.lstrip().rstrip())), "DBG")