From 5a59afd12a2963764ba0c6f6908e825f69bc2612 Mon Sep 17 00:00:00 2001 From: Paul McInnis Date: Tue, 26 Mar 2013 23:15:25 -0700 Subject: [PATCH] refactored length to timeout, added verbose mac address to connection. https://github.com/pebble/lightblue-0.4/pull/4 --- pebble/LightBlueSerial.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pebble/LightBlueSerial.py b/pebble/LightBlueSerial.py index 6021de0..12734de 100755 --- a/pebble/LightBlueSerial.py +++ b/pebble/LightBlueSerial.py @@ -83,11 +83,11 @@ def autodetect(self): # we have the friendly name, let's get the full mac address log.warn("Going to get full address for device %s, ensure device is broadcasting." % self.mac_address) # scan for active devices - devices = finddevices(length=8) + devices = finddevices(timeout=8) for device in devices: if re.search(r'Pebble ' + self.mac_address, device[1], re.IGNORECASE): - log.debug("Found Pebble: " + device[1]) + log.debug("Found Pebble: %s @ %s" % (device[1], device[0])) list_of_pebbles.append(device) if len(list_of_pebbles) is 1: