diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/wps-display.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c index c64a1aa7dd..ac423c740a 100644 --- a/apps/wps-display.c +++ b/apps/wps-display.c | |||
@@ -68,6 +68,7 @@ static char* format_lines[MAX_LINES]; | |||
68 | static bool dynamic_lines[MAX_LINES]; | 68 | static bool dynamic_lines[MAX_LINES]; |
69 | static int ff_rewind_count; | 69 | static int ff_rewind_count; |
70 | bool wps_time_countup = true; | 70 | bool wps_time_countup = true; |
71 | static bool wps_loaded = false; | ||
71 | 72 | ||
72 | /* Set format string to use for WPS, splitting it into lines */ | 73 | /* Set format string to use for WPS, splitting it into lines */ |
73 | static void wps_format(char* fmt) | 74 | static void wps_format(char* fmt) |
@@ -148,6 +149,7 @@ bool wps_load_custom(char* file) | |||
148 | sleep(HZ); | 149 | sleep(HZ); |
149 | } | 150 | } |
150 | 151 | ||
152 | wps_loaded = true; | ||
151 | return numread > 0; | 153 | return numread > 0; |
152 | } | 154 | } |
153 | 155 | ||
@@ -637,11 +639,8 @@ void wps_display(struct mp3entry* id3) | |||
637 | } | 639 | } |
638 | else | 640 | else |
639 | { | 641 | { |
640 | static bool wps_loaded = false; | ||
641 | |||
642 | if (!wps_loaded) { | 642 | if (!wps_loaded) { |
643 | wps_load_custom(NULL); | 643 | wps_load_custom(NULL); |
644 | wps_loaded = true; | ||
645 | 644 | ||
646 | if ( !format_buffer[0] ) { | 645 | if ( !format_buffer[0] ) { |
647 | #ifdef HAVE_LCD_BITMAP | 646 | #ifdef HAVE_LCD_BITMAP |