summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-05-03 15:26:45 +0800
committerTat-Chee Wan (USM)2011-05-03 15:26:45 +0800
commit5885fe8b81e99d6af1e51f7d7e3b20d0fee49676 (patch)
tree871b37b7b3883aaf73a66e9ac8445f973791595c
parent6e30d57a27a7d5ee35482831fa82d4f4dfb72aa5 (diff)
Fix silly typos
-rw-r--r--nxt-python-fantom/nxt/fantomglue.py6
1 files 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