aboutsummaryrefslogtreecommitdiff
path: root/nxt-python-fantom/nxt/pyusbglue.py
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-05-04 08:17:53 +0800
committerTat-Chee Wan (USM)2011-05-04 08:17:53 +0800
commit05b196d6bf26b0fe70a43607269f88187f595673 (patch)
tree512e8d09ed1229ec51e4a7ecf9b112e437103979 /nxt-python-fantom/nxt/pyusbglue.py
parent5885fe8b81e99d6af1e51f7d7e3b20d0fee49676 (diff)
work in progress
Tracing Exception in NXTIterator.get_nxt() which is triggered when invoking fantomglue.find_devices()
Diffstat (limited to 'nxt-python-fantom/nxt/pyusbglue.py')
-rw-r--r--nxt-python-fantom/nxt/pyusbglue.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nxt-python-fantom/nxt/pyusbglue.py b/nxt-python-fantom/nxt/pyusbglue.py
index 40f708b..c0f8792 100644
--- a/nxt-python-fantom/nxt/pyusbglue.py
+++ b/nxt-python-fantom/nxt/pyusbglue.py
@@ -16,6 +16,7 @@
import usb
+USB_BUFSIZE = 64
ID_VENDOR_LEGO = 0x0694
ID_PRODUCT_NXT = 0x0002
@@ -44,7 +45,6 @@ class USBSocket:
self.handle.reset()
if self.debug:
print 'Connected.'
- return Brick(self)
def close(self):
'Use to close the connection.'