Browse Source

Fixed a potential timer issue.

pyserial_fix
Scott Petersen 11 years ago
parent
commit
11e1735820
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      pyad2usb/devices.py

+ 2
- 0
pyad2usb/devices.py View File

@@ -428,6 +428,8 @@ class SerialDevice(Device):
time.sleep(0.001)

except (OSError, serial.SerialException), err:
timer.cancel()

raise util.CommError('Error reading from AD2SERIAL device: {0}'.format(str(err)))
else:
if got_line:


Loading…
Cancel
Save