Just trying to get cloudpebble going

This commit is contained in:
Neale Pickett 2015-05-27 19:50:28 -06:00
parent 81ac56be56
commit 1616fcb43d
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ static void handle_minute_tick(struct tm *tick_time, TimeUnits units_changed) {
char *time_format;
if (clock_is_24h_style()) {
time_format = "%k:%M";
time_format = "%R";
} else {
time_format = "%l:%M";
}
@ -38,7 +38,7 @@ static void handle_minute_tick(struct tm *tick_time, TimeUnits units_changed) {
if (!clock_is_24h_style() && (s_time_text[0] == '0')) {
memmove(s_time_text, &s_time_text[1], sizeof(s_time_text) - 1);
}
if (s_time_text[0] == ' ') {
if (s_time_text[0] == '0') {
text_layer_set_text(s_time_layer, s_time_text + 1);
} else {
text_layer_set_text(s_time_layer, s_time_text);