Browse Source

Write timeout.

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

+ 1
- 1
pyad2usb/devices.py View File

@@ -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


Loading…
Cancel
Save