aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--pyfantom.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pyfantom.py b/pyfantom.py
index 86171cd..143da71 100644
--- a/pyfantom.py
+++ b/pyfantom.py
@@ -352,6 +352,8 @@ class NXT:
data_buffer = ctypes.create_string_buffer(data)
ret = dll.nFANTOM100_iNXT_write(self.handle, data_buffer, len(data),
cast(byref(status), POINTER(c_int)))
+ if self.debug:
+ print "pyfantom: write() sent ", ret, " of ", len(data), " bytes."
Status.check(status)
return ret
@@ -578,7 +580,7 @@ if __name__ == '__main__':
# check_bt == True: Bluetooth Interface
# check_bt == False: USB Interface
- check_bt = False
+ check_bt = True
get_info = True
play_tone = True
get_battery = True