Navigation Menu

Skip to content

Commit

Permalink
"id" is now stored in "pebble" object.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiding committed Feb 23, 2013
1 parent 620275e commit 3b6b019
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pebble.py
Expand Up @@ -92,6 +92,7 @@ def AutodetectDevice():
def __init__(self, id):
if id is None:
id = Pebble.AutodetectDevice()
self.id = id
self._alive = True
self._endpoint_handlers = {}
self._internal_endpoint_handlers = {
Expand Down Expand Up @@ -589,7 +590,7 @@ def handle_message(self, endpoint, resp):
curtime = pebble.get_time()
apps = pebble.get_appbank_status()

print "Pebble "+pebble_id
print "Pebble "+pebble.id
print "Firmware "+versions["normal_fw"]["version"]
print "Recovery "+versions["recovery_fw"]["version"]
print "Timestamp: "+str(curtime)
Expand Down

0 comments on commit 3b6b019

Please sign in to comment.