Fix some menu regressions because of getInputWait() changes

This commit is contained in:
Stefan `Sec` Zehl 2011-07-27 00:58:48 +02:00
parent 535b635b0e
commit 5a55da7f76
2 changed files with 4 additions and 1 deletions

View File

@ -74,7 +74,8 @@ void msc_menu(void){
DoString(0,8,"MSC Enabled.");
lcdDisplay();
usbMSCInit();
while(!getInputRaw())delayms(10);
getInputWaitRelease();
getInputWait();
DoString(0,16,"MSC Disabled.");
usbMSCOff();
};

View File

@ -76,6 +76,7 @@ void handleMenu(const struct MENU *the_menu) {
lcdClear();
lcdPrintln("Called...");
lcdRefresh();
getInputWaitRelease();
if (the_menu->entries[menuselection]->callback!=NULL)
the_menu->entries[menuselection]->callback();
lcdDisplay();
@ -86,6 +87,7 @@ void handleMenu(const struct MENU *the_menu) {
/* no button pressed */
break;
}
getInputWaitRelease();
}
return;