Browse files

Merge pull request #7 from kiding/master

"id" is now stored in "pebble" object.
  • Loading branch information...
2 parents 83ea8c1 + 3b6b019 commit bb13cd75dc78c2832524c4a82799ec21851240d9 @Hexxeh committed Feb 23, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 pebble.py
View
3 pebble.py
@@ -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 = {
@@ -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)

0 comments on commit bb13cd7

Please sign in to comment.