From 2405fb7cb6693a6e96753cd66eed37c12dde3f20 Mon Sep 17 00:00:00 2001 From: Dmitry Moiseev Date: Mon, 18 Nov 2013 14:30:16 +0600 Subject: Message text fix --- ParrotZik.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.1