diff --git a/pyad2usb/devices.py b/pyad2usb/devices.py index d3e0bc0..ecfba05 100644 --- a/pyad2usb/devices.py +++ b/pyad2usb/devices.py @@ -207,6 +207,7 @@ class USBDevice(Device): """ def timeout_event(): timeout_event.reading = False + raise util.TimeoutError('Timeout while waiting for line terminator.') timeout_event.reading = True @@ -392,6 +393,7 @@ class SerialDevice(Device): def timeout_event(): timeout_event.reading = False + raise util.TimeoutError('Timeout while waiting for line terminator.') timeout_event.reading = True @@ -550,6 +552,7 @@ class SocketDevice(Device): """ def timeout_event(): timeout_event.reading = False + raise util.TimeoutError('Timeout while waiting for line terminator.') timeout_event.reading = True