summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/wps-display.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c
index e46ff94a32..59fda08cac 100644
--- a/apps/wps-display.c
+++ b/apps/wps-display.c
@@ -666,13 +666,14 @@ bool wps_display(struct mp3entry* id3)
666#if defined(HAVE_LCD_CHARCELLS) 666#if defined(HAVE_LCD_CHARCELLS)
667bool draw_player_progress(struct mp3entry* id3, int ff_rewwind_count) 667bool draw_player_progress(struct mp3entry* id3, int ff_rewwind_count)
668{ 668{
669 if(!id3)
670 return(false);
671 char player_progressbar[7]; 669 char player_progressbar[7];
672 char binline[36]; 670 char binline[36];
673 int songpos = 0; 671 int songpos = 0;
674 int i,j; 672 int i,j;
675 673
674 if (!id3)
675 return false;
676
676 memset(binline, 1, sizeof binline); 677 memset(binline, 1, sizeof binline);
677 memset(player_progressbar, 1, sizeof player_progressbar); 678 memset(player_progressbar, 1, sizeof player_progressbar);
678 if(id3->elapsed >= id3->length) 679 if(id3->elapsed >= id3->length)
@@ -694,6 +695,6 @@ bool draw_player_progress(struct mp3entry* id3, int ff_rewwind_count)
694 } 695 }
695 } 696 }
696 lcd_define_pattern(8,player_progressbar,7); 697 lcd_define_pattern(8,player_progressbar,7);
697 return(true); 698 return true;
698} 699}
699#endif 700#endif