Make GetInputWait() work our new queue. Make the menu code use it by default.

This commit is contained in:
Stefan `Sec` Zehl 2011-07-24 15:54:18 +02:00
parent 7a019d06e7
commit 80f914e58f
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ uint8_t getInput(void) {
uint8_t getInputWait(void) {
uint8_t key;
while ((key=getInput())==BTN_NONE)
delayms(10);
work_queue();
return key;
};

View File

@ -43,7 +43,7 @@ void handleMenu(const struct MENU *the_menu) {
}
lcdDisplay();
switch (getInput()) {
switch (getInputWait()) {
case BTN_UP:
menuselection--;
if (menuselection < current_offset) {