aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-05-03 14:46:37 +0800
committerTat-Chee Wan (USM)2011-05-03 14:46:37 +0800
commit1e3b294f345511538c64cce8f9f3e0ba3c82d1e3 (patch)
tree0c4bf4cb2ca8dbcbe405a8bb2f0d30f1e3385829
parent7159d0c9ea305ca1cb766ad783ae95f1b5f30d07 (diff)
fixed minor cut and past errors
-rw-r--r--nxt-python-fantom/nxt/fantomglue.py1
-rw-r--r--nxt-python-fantom/nxt/usbsock.py2
2 files changed, 1 insertions, 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):