From 1e3b294f345511538c64cce8f9f3e0ba3c82d1e3 Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan (USM) Date: Tue, 3 May 2011 14:46:37 +0800 Subject: fixed minor cut and past errors --- nxt-python-fantom/nxt/fantomglue.py | 1 - nxt-python-fantom/nxt/usbsock.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/nxt-python-fantom/nxt/fantomglue.py b/nxt-python-fantom/nxt/fantomglue.py index a4b6056..6281c95 100644 --- a/nxt-python-fantom/nxt/fantomglue.py +++ b/nxt-python-fantom/nxt/fantomglue.py @@ -96,7 +96,6 @@ class USBSocket: return devinfo.name def connect(self): - addr, port = addrport if self._sock is None: # Port is ignored self._sock = pyfantom.NXT(addr) diff --git a/nxt-python-fantom/nxt/usbsock.py b/nxt-python-fantom/nxt/usbsock.py index 0375869..9df7792 100644 --- a/nxt-python-fantom/nxt/usbsock.py +++ b/nxt-python-fantom/nxt/usbsock.py @@ -25,7 +25,7 @@ class USBSock(object): bsize = 60 # USB socket block size def __init__(self, device): - self.sock = USBSocket(device) + self.sock = usb.USBSocket(device) self.debug = False def __str__(self): -- cgit v1.2.3