mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-25 20:26:41 +00:00
Smoother console input
This commit is contained in:
parent
e23a17c09e
commit
7df826d2de
@ -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()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user