Make GetInputWait() work our new queue. Make the menu code use it by default.
This commit is contained in:
parent
7a019d06e7
commit
80f914e58f
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ void handleMenu(const struct MENU *the_menu) {
|
|||
}
|
||||
lcdDisplay();
|
||||
|
||||
switch (getInput()) {
|
||||
switch (getInputWait()) {
|
||||
case BTN_UP:
|
||||
menuselection--;
|
||||
if (menuselection < current_offset) {
|
||||
|
|
Loading…
Reference in New Issue