1
0
Fork 0
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:
Linus Nielsen Feltzing 2002-07-30 09:00:11 +00:00
parent 17cf49a8c4
commit 217023ff67

View file

@ -137,10 +137,12 @@ void show_info(void)
char s[32];
int buflen = ((mp3end - mp3buf) * 100) / 0x100000;
int integer, decimal;
bool done = false;
while(!done)
{
lcd_clear_display();
lcd_puts(0, 0, "Rockbox info:");
/* TODO: add disk size/usage info, battery charge etc here? */
integer = buflen / 100;
decimal = buflen % 100;
@ -162,8 +164,12 @@ void show_info(void)
lcd_update();
sleep(HZ/2);
/* 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)