Skip to content

Commit

Permalink
Add some leet
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisMT committed Sep 13, 2015
1 parent d78973c commit 9d63d0d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion appinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"basalt"
],
"uuid": "4335c1d9-7477-4a86-b7d3-d206dd7a7aad",
"versionLabel": "1.1",
"versionLabel": "1.2",
"watchapp": {
"watchface": true
}
Expand Down
9 changes: 9 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ static void update_time() {
strftime(s_date_buffer, sizeof(s_date_buffer), "%e %B", tick_time);
strftime(s_day_buffer, sizeof(s_day_buffer), "%A", tick_time);

// Add some leet if necessary
if (strcmp(s_time_buffer, "13:37") == 0) {
strncpy(s_time_buffer, "LEET!", sizeof(s_time_buffer));
}

// Update the display
text_layer_set_text(s_week_year_layer, s_week_year_buffer);
text_layer_set_text(s_time_layer, s_time_buffer);
Expand Down Expand Up @@ -143,6 +148,10 @@ static void init() {
}

static void deinit() {
tick_timer_service_unsubscribe();
battery_state_service_unsubscribe();
bluetooth_connection_service_unsubscribe();

window_destroy(s_main_window);
}

Expand Down

0 comments on commit 9d63d0d

Please sign in to comment.