Skip to content

Commit

Permalink
refactored length to timeout, added verbose mac address to connection.
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulMcInnis committed Mar 27, 2013
1 parent 1769111 commit 5a59afd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pebble/LightBlueSerial.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5a59afd

Please sign in to comment.