Browse Source

Missing exception

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

+ 5
- 2
pyad2usb/devices.py View File

@@ -188,9 +188,12 @@ class USBDevice(Device):
"""
Writes data to the device.
"""
self._device.write_data(data)
try:
self._device.write_data(data)

self.on_write(data)
self.on_write(data)
except FtdiError, err:
raise util.CommError('Error writing to AD2USB device.')

def read(self):
"""


Loading…
Cancel
Save