Smoother console input

This commit is contained in:
fvanroie 2021-02-04 18:30:48 +01:00
parent e23a17c09e
commit 7df826d2de

View File

@ -686,9 +686,9 @@ void debugLvglLogEvent(lv_log_level_t level, const char * file, uint32_t line, c
void IRAM_ATTR debugLoop(void)
{
int16_t keypress = debugConsole.readKey();
switch(keypress) {
int16_t keypress;
do {
switch(keypress = debugConsole.readKey()) {
case ConsoleInput::KEY_PAGE_UP:
dispatch_page_next();
@ -702,6 +702,7 @@ void IRAM_ATTR debugLoop(void)
haspSetPage(keypress - ConsoleInput::KEY_FN - 1);
break;
}
} while(keypress != 0);
}
void printLocalTime()
{