aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Moiseev <m0sia@m0sia.ru>2013-11-18 14:30:16 +0600
committerDmitry Moiseev <m0sia@m0sia.ru>2013-11-18 14:30:16 +0600
commit2405fb7cb6693a6e96753cd66eed37c12dde3f20 (patch)
treef17600f3d5a42278b1b076459141f626ffa30b36
parent990c7bfff47e0f0b328ca20fdf7fd6cfb51209e6 (diff)
downloadpyParrotZikTCP-2405fb7cb6693a6e96753cd66eed37c12dde3f20.tar.xz
pyParrotZikTCP-2405fb7cb6693a6e96753cd66eed37c12dde3f20.zip
Message text fix
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)