Skip to content

Commit

Permalink
Merge branch 'dev-v2.x' into feature-build-return-code
Browse files Browse the repository at this point in the history
Conflicts:
	pebble/LibPebblesCommand.py
  • Loading branch information
bradtgmurray committed Sep 6, 2013
2 parents c5d8c67 + 513a881 commit 90e0f73
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
15 changes: 9 additions & 6 deletions pebble/LibPebblesCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,16 @@ def configure_subparser(self, parser):
def run(self, args):
LibPebbleCommand.run(self, args)

apps = self.pebble.get_appbank_status()
if apps is not False and len(apps['apps']) > 0:
for app in apps['apps']:
try:
response = self.pebble.get_appbank_status()
apps = response['apps']
if len(apps) == 0:
logging.info("No apps installed.")
for app in apps:
logging.info('[{}] {}'.format(app['index'], app['name']))
else:
logging.info("No apps.")

except:
logging.error("Error getting apps list.")
return 1

class PblRemoveCommand(LibPebbleCommand):
name = 'rm'
Expand Down
6 changes: 4 additions & 2 deletions pebble/PblProjectCreator.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,8 @@ def build(ctx):
void handle_init(void) {
window = window_create();
window_stack_push(window, true /* Animated */);
window_set_click_config_provider(window, (ClickConfigProvider) config_provider);
window_stack_push(window, true /* Animated */);
text_layer = text_layer_create(GRect(/* x: */ 0, /* y: */ 74,
/* width: */ 144, /* height: */ 20));
Expand All @@ -157,6 +156,9 @@ def build(ctx):
int main(void) {
handle_init();
APP_LOG(APP_LOG_LEVEL_DEBUG, "Done initializing, pushed window: %p", window);
app_event_loop();
handle_deinit();
}
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
twisted
autobahn
websocket-client
sh==1.04
sh==1.08
pyserial>=2.6
# Only if using bluetooth connection to Pebble:
# git+http://github.com/pebble/lightblue-0.4.git#egg=lightblue-0.4

0 comments on commit 90e0f73

Please sign in to comment.