From 5885fe8b81e99d6af1e51f7d7e3b20d0fee49676 Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan (USM) Date: Tue, 3 May 2011 15:26:45 +0800 Subject: Fix silly typos --- nxt-python-fantom/nxt/fantomglue.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nxt-python-fantom/nxt/fantomglue.py b/nxt-python-fantom/nxt/fantomglue.py index 178d7b0..ac125ed 100644 --- a/nxt-python-fantom/nxt/fantomglue.py +++ b/nxt-python-fantom/nxt/fantomglue.py @@ -53,7 +53,7 @@ class BluetoothSocket: return self._sock.read( numbytes ) def close(self): - if sef._sock is not None: + if self._sock is not None: del self._sock class BluetoothError(IOError): @@ -66,6 +66,8 @@ def _check_brick(arg, value): def find_devices(lookup_names=False): # parameter is ignored devicelist = [] for d in pyfantom.NXTIterator(False): + #name = d.get_name() + #print "NXT name: ", name nxt = d.get_nxt() devicelist.append(nxt) return devicelist @@ -108,5 +110,5 @@ class USBSocket: return self._sock.read( numbytes ) def close(self): - if sef._sock is not None: + if self._sock is not None: del self._sock -- cgit v1.2.3