Browse Source

Fixed exception from SerialDevice when writing

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

+ 2
- 0
pyad2usb/devices.py View File

@@ -358,6 +358,8 @@ class SerialDevice(Device):
self._device.write(data)
except serial.SerialTimeoutException, err:
pass
except serial.SerialException, err:
raise util.CommError('Error writing to serial device.')
else:
self.on_write(data)



Loading…
Cancel
Save