From 5b6ef335332afdc6a0b82441d25833ee574c5073 Mon Sep 17 00:00:00 2001 From: Scott Petersen Date: Tue, 4 Jun 2013 13:28:59 -0700 Subject: [PATCH] Write timeout. --- pyad2usb/devices.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyad2usb/devices.py b/pyad2usb/devices.py index f3b30c9..26e8cbc 100644 --- a/pyad2usb/devices.py +++ b/pyad2usb/devices.py @@ -288,7 +288,7 @@ class SerialDevice(Device): """ Device.__init__(self) - self._device = serial.Serial(timeout=0) # Timeout = non-blocking to match pyftdi. + self._device = serial.Serial(timeout=0, writeTimeout=0) # Timeout = non-blocking to match pyftdi. self._read_thread = Device.ReadThread(self) self._buffer = '' self._running = False