aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ParrotZik.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ParrotZik.py b/ParrotZik.py
index f86ca97..90aabd3 100644
--- a/ParrotZik.py
+++ b/ParrotZik.py
@@ -12,7 +12,7 @@ class ParrotZik(object):
service_matches = bluetooth.find_service( uuid = uuid, address = addr )
if len(service_matches) == 0:
- print "Couldn't find Parrot Zik"
+ print "Failed to find Parrot Zik RFCOMM service"
self.sock =""
return
@@ -92,6 +92,7 @@ class ParrotZik(object):
self.sock.send(str(message))
except:
self.sock =""
+ return
data = self.sock.recv(7)
len = struct.unpack('B', data[1])[0]
data = self.sock.recv(1024)