|
@@ -428,6 +428,8 @@ class SerialDevice(Device): |
|
|
time.sleep(0.001) |
|
|
time.sleep(0.001) |
|
|
|
|
|
|
|
|
except (OSError, serial.SerialException), err: |
|
|
except (OSError, serial.SerialException), err: |
|
|
|
|
|
timer.cancel() |
|
|
|
|
|
|
|
|
raise util.CommError('Error reading from AD2SERIAL device: {0}'.format(str(err))) |
|
|
raise util.CommError('Error reading from AD2SERIAL device: {0}'.format(str(err))) |
|
|
else: |
|
|
else: |
|
|
if got_line: |
|
|
if got_line: |
|
|