forked from len0rd/rockbox
show_info() now updates the display continuously
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1494 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
17cf49a8c4
commit
217023ff67
1 changed files with 27 additions and 21 deletions
|
|
@ -137,10 +137,12 @@ void show_info(void)
|
||||||
char s[32];
|
char s[32];
|
||||||
int buflen = ((mp3end - mp3buf) * 100) / 0x100000;
|
int buflen = ((mp3end - mp3buf) * 100) / 0x100000;
|
||||||
int integer, decimal;
|
int integer, decimal;
|
||||||
|
bool done = false;
|
||||||
|
|
||||||
|
while(!done)
|
||||||
|
{
|
||||||
lcd_clear_display();
|
lcd_clear_display();
|
||||||
lcd_puts(0, 0, "Rockbox info:");
|
lcd_puts(0, 0, "Rockbox info:");
|
||||||
/* TODO: add disk size/usage info, battery charge etc here? */
|
|
||||||
|
|
||||||
integer = buflen / 100;
|
integer = buflen / 100;
|
||||||
decimal = buflen % 100;
|
decimal = buflen % 100;
|
||||||
|
|
@ -162,8 +164,12 @@ void show_info(void)
|
||||||
|
|
||||||
lcd_update();
|
lcd_update();
|
||||||
|
|
||||||
|
sleep(HZ/2);
|
||||||
|
|
||||||
/* Wait for a key to be pushed */
|
/* Wait for a key to be pushed */
|
||||||
while(button_get(true) & BUTTON_REL);
|
if(button_get(false) & ~BUTTON_REL)
|
||||||
|
done = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void main_menu(void)
|
void main_menu(void)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue