From 05b196d6bf26b0fe70a43607269f88187f595673 Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan (USM) Date: Wed, 4 May 2011 08:17:53 +0800 Subject: work in progress Tracing Exception in NXTIterator.get_nxt() which is triggered when invoking fantomglue.find_devices() --- nxt-python-fantom/nxt/pyusbglue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nxt-python-fantom/nxt/pyusbglue.py') 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.' -- cgit v1.2.3