Skip to content

Commit 9d63d0d

Browse files
committed
Add some leet
1 parent d78973c commit 9d63d0d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

appinfo.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"basalt"
1717
],
1818
"uuid": "4335c1d9-7477-4a86-b7d3-d206dd7a7aad",
19-
"versionLabel": "1.1",
19+
"versionLabel": "1.2",
2020
"watchapp": {
2121
"watchface": true
2222
}

src/main.c

+9
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ static void update_time() {
2727
strftime(s_date_buffer, sizeof(s_date_buffer), "%e %B", tick_time);
2828
strftime(s_day_buffer, sizeof(s_day_buffer), "%A", tick_time);
2929

30+
// Add some leet if necessary
31+
if (strcmp(s_time_buffer, "13:37") == 0) {
32+
strncpy(s_time_buffer, "LEET!", sizeof(s_time_buffer));
33+
}
34+
3035
// Update the display
3136
text_layer_set_text(s_week_year_layer, s_week_year_buffer);
3237
text_layer_set_text(s_time_layer, s_time_buffer);
@@ -143,6 +148,10 @@ static void init() {
143148
}
144149

145150
static void deinit() {
151+
tick_timer_service_unsubscribe();
152+
battery_state_service_unsubscribe();
153+
bluetooth_connection_service_unsubscribe();
154+
146155
window_destroy(s_main_window);
147156
}
148157

0 commit comments

Comments
 (0)