Browse Source

Oops, forgot the exception.

pyserial_fix
Scott Petersen 12 years ago
parent
commit
7e65264e15
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      pyad2usb/devices.py

+ 3
- 0
pyad2usb/devices.py View File

@@ -207,6 +207,7 @@ class USBDevice(Device):
""" """
def timeout_event(): def timeout_event():
timeout_event.reading = False timeout_event.reading = False
raise util.TimeoutError('Timeout while waiting for line terminator.')


timeout_event.reading = True timeout_event.reading = True


@@ -392,6 +393,7 @@ class SerialDevice(Device):


def timeout_event(): def timeout_event():
timeout_event.reading = False timeout_event.reading = False
raise util.TimeoutError('Timeout while waiting for line terminator.')


timeout_event.reading = True timeout_event.reading = True


@@ -550,6 +552,7 @@ class SocketDevice(Device):
""" """
def timeout_event(): def timeout_event():
timeout_event.reading = False timeout_event.reading = False
raise util.TimeoutError('Timeout while waiting for line terminator.')


timeout_event.reading = True timeout_event.reading = True




Loading…
Cancel
Save