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."); DoString(0,8,"MSC Enabled.");
lcdDisplay(); lcdDisplay();
usbMSCInit(); usbMSCInit();
while(!getInputRaw())delayms(10); getInputWaitRelease();
getInputWait();
DoString(0,16,"MSC Disabled."); DoString(0,16,"MSC Disabled.");
usbMSCOff(); usbMSCOff();
}; };

View File

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