diff options
Diffstat (limited to 'apps/misc.c')
-rw-r--r-- | apps/misc.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/misc.c b/apps/misc.c index d7d4bdd2f9..91244f2c39 100644 --- a/apps/misc.c +++ b/apps/misc.c | |||
@@ -1,10 +1,10 @@ | |||
1 | /*************************************************************************** | 1 | /*************************************************************************** |
2 | * __________ __ ___. | 2 | * __________ __ ___. |
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | 4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | 5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | 6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
7 | * \/ \/ \/ \/ \/ | 7 | * \/ \/ \/ \/ \/ |
8 | * $Id$ | 8 | * $Id$ |
9 | * | 9 | * |
10 | * Copyright (C) 2002 by Daniel Stenberg | 10 | * Copyright (C) 2002 by Daniel Stenberg |
@@ -424,7 +424,7 @@ bool list_stop_handler(void) | |||
424 | 424 | ||
425 | if (TIME_BEFORE(current_tick, last_off + HZ/2)) | 425 | if (TIME_BEFORE(current_tick, last_off + HZ/2)) |
426 | { | 426 | { |
427 | if (charger_inserted()) | 427 | if (charger_inserted()) |
428 | { | 428 | { |
429 | charging_splash(); | 429 | charging_splash(); |
430 | ret = true; /* screen is dirty, caller needs to refresh */ | 430 | ret = true; /* screen is dirty, caller needs to refresh */ |
@@ -1064,7 +1064,7 @@ void format_time(char* buf, int buf_size, long t) | |||
1064 | int const seconds = time % 60; | 1064 | int const seconds = time % 60; |
1065 | const char * const sign = &"-"[t < 0 ? 0 : 1]; | 1065 | const char * const sign = &"-"[t < 0 ? 0 : 1]; |
1066 | 1066 | ||
1067 | if ( hours == 0 ) | 1067 | if ( hours == 0 ) |
1068 | { | 1068 | { |
1069 | snprintf(buf, buf_size, "%s%d:%02d", sign, minutes, seconds); | 1069 | snprintf(buf, buf_size, "%s%d:%02d", sign, minutes, seconds); |
1070 | } | 1070 | } |
@@ -1177,7 +1177,7 @@ bool parse_color(enum screen_type screen, char *text, int *value) | |||
1177 | { | 1177 | { |
1178 | (void)text; (void)value; /* silence warnings on mono bitmap */ | 1178 | (void)text; (void)value; /* silence warnings on mono bitmap */ |
1179 | (void)screen; | 1179 | (void)screen; |
1180 | 1180 | ||
1181 | #ifdef HAVE_LCD_COLOR | 1181 | #ifdef HAVE_LCD_COLOR |
1182 | if (screens[screen].depth > 2) | 1182 | if (screens[screen].depth > 2) |
1183 | { | 1183 | { |
@@ -1214,7 +1214,7 @@ int clamp_value_wrap(int value, int max, int min) | |||
1214 | #endif | 1214 | #endif |
1215 | #endif | 1215 | #endif |
1216 | #define MAX_ACTIVITY_DEPTH 12 | 1216 | #define MAX_ACTIVITY_DEPTH 12 |
1217 | static enum current_activity | 1217 | static enum current_activity |
1218 | current_activity[MAX_ACTIVITY_DEPTH] = {ACTIVITY_UNKNOWN}; | 1218 | current_activity[MAX_ACTIVITY_DEPTH] = {ACTIVITY_UNKNOWN}; |
1219 | static int current_activity_top = 0; | 1219 | static int current_activity_top = 0; |
1220 | void push_current_activity(enum current_activity screen) | 1220 | void push_current_activity(enum current_activity screen) |