This website works better with JavaScript.
Home
Explore
Help
Sign In
jmg
/
alarmdecoder
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Fixed exception from SerialDevice when writing
pyserial_fix
Scott Petersen
11 years ago
parent
9841bbe9b5
commit
2f3a8590a3
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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)
Write
Preview
Loading…
Cancel
Save