Added 1s timeout to splash
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@650 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6050e86643
commit
63882eae82
1 changed files with 9 additions and 2 deletions
|
@ -20,6 +20,9 @@
|
|||
#include "menu.h"
|
||||
#include "tree.h"
|
||||
#include "credits.h"
|
||||
#include "lcd.h"
|
||||
#include "button.h"
|
||||
#include "kernel.h"
|
||||
|
||||
void show_splash(void);
|
||||
|
||||
|
@ -108,7 +111,7 @@ int show_logo(void)
|
|||
|
||||
void show_splash(void)
|
||||
{
|
||||
|
||||
int i;
|
||||
char *rockbox = "ROCKbox!";
|
||||
lcd_clear_display();
|
||||
|
||||
|
@ -120,7 +123,11 @@ void show_splash(void)
|
|||
#endif
|
||||
|
||||
lcd_update();
|
||||
while(!button_get());
|
||||
for ( i=0;i<10;i++) {
|
||||
sleep(HZ/10);
|
||||
if (button_get())
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void main_menu(void)
|
||||
|
|
Loading…
Reference in a new issue