only lcd_update() when a key actually was pressed

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@288 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2002-04-28 00:18:27 +00:00
parent 8776e03825
commit 5ae04070b4

View file

@ -56,6 +56,10 @@ void app_main(void)
while(1) {
key = button_get();
if(!key) {
sleep(1);
continue;
}
switch(key) {
case BUTTON_UP:
if(cursor) {