summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-05-03 15:26:56 +0800
committerTat-Chee Wan (USM)2011-05-03 15:26:56 +0800
commit5da633ada55ba06757fedddda01c34f273375cb7 (patch)
treec4aff9ff306a4019b7f7b07e02483e81f74e8210
parent07211672dfa84bd8f276f0ae97341216a099467c (diff)
parent5885fe8b81e99d6af1e51f7d7e3b20d0fee49676 (diff)
Merge branch 'master' of ssh://svc.cs.usm.my/~/gitrepo-bare/armdebug
-rw-r--r--AT91SAM7S256/armdebug/nxt-python-fantom/nxt/fantomglue.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/AT91SAM7S256/armdebug/nxt-python-fantom/nxt/fantomglue.py b/AT91SAM7S256/armdebug/nxt-python-fantom/nxt/fantomglue.py
index 178d7b0..ac125ed 100644
--- a/AT91SAM7S256/armdebug/nxt-python-fantom/nxt/fantomglue.py
+++ b/AT91SAM7S256/armdebug/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