From f4c8da7ca92ea59286ce8d7d582ab9629cc0f335 Mon Sep 17 00:00:00 2001 From: Scott Petersen Date: Thu, 23 May 2013 15:57:11 -0700 Subject: [PATCH] Oops. --- pyad2usb/ad2usb.py | 4 ++-- pyad2usb/devices.py | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pyad2usb/ad2usb.py b/pyad2usb/ad2usb.py index e7de0ac..93181fb 100644 --- a/pyad2usb/ad2usb.py +++ b/pyad2usb/ad2usb.py @@ -188,12 +188,12 @@ class AD2USB(object): """ pass - def open(self, baudrate=None, interface=None, index=None, no_read_thread=False): + def open(self, baudrate=None, interface=None, index=None, no_reader_thread=False): """ Opens the device. """ self._wire_events() - self._device.open(baudrate=baudrate, interface=interface, index=index, no_read_thread=no_read_thread) + self._device.open(baudrate=baudrate, interface=interface, index=index, no_reader_thread=no_reader_thread) def close(self): """ diff --git a/pyad2usb/devices.py b/pyad2usb/devices.py index be064fc..183fa9e 100644 --- a/pyad2usb/devices.py +++ b/pyad2usb/devices.py @@ -110,7 +110,7 @@ class USBDevice(Device): self._read_thread = Device.ReadThread(self) - def open(self, baudrate=BAUDRATE, interface=None, index=0, no_read_thread=False): + def open(self, baudrate=BAUDRATE, interface=None, index=0, no_reader_thread=False): """ Opens the device. """ @@ -143,7 +143,7 @@ class USBDevice(Device): raise util.CommError('Error opening AD2USB device: {0}'.format(str(err))) else: self._running = True - if not no_read_thread: + if not no_reader_thread: self._read_thread.start() self.on_open((self._serial_number, self._description)) @@ -273,7 +273,7 @@ class SerialDevice(Device): """ pass - def open(self, baudrate=BAUDRATE, interface=None, index=None, no_read_thread=False): + def open(self, baudrate=BAUDRATE, interface=None, index=None, no_reader_thread=False): """ Opens the device. """ @@ -301,7 +301,7 @@ class SerialDevice(Device): self._running = True self.on_open((None, "AD2SERIAL")) # TODO: Fixme. - if not no_read_thread: + if not no_reader_thread: self._read_thread.start() def close(self): @@ -412,7 +412,7 @@ class SocketDevice(Device): """ pass - def open(self, baudrate=None, interface=None, index=0, no_read_thread=False): + def open(self, baudrate=None, interface=None, index=0, no_reader_thread=False): """ Opens the device. """ @@ -431,7 +431,7 @@ class SocketDevice(Device): self.on_open((None, "AD2SOCKET")) # TEMP: Change me. - if not no_read_thread: + if not no_reader_thread: self._read_thread.start() def close(self):