mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-26 12:46:37 +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)
|
void IRAM_ATTR debugLoop(void)
|
||||||
{
|
{
|
||||||
int16_t keypress = debugConsole.readKey();
|
int16_t keypress;
|
||||||
|
do {
|
||||||
switch(keypress) {
|
switch(keypress = debugConsole.readKey()) {
|
||||||
|
|
||||||
case ConsoleInput::KEY_PAGE_UP:
|
case ConsoleInput::KEY_PAGE_UP:
|
||||||
dispatch_page_next();
|
dispatch_page_next();
|
||||||
@ -702,6 +702,7 @@ void IRAM_ATTR debugLoop(void)
|
|||||||
haspSetPage(keypress - ConsoleInput::KEY_FN - 1);
|
haspSetPage(keypress - ConsoleInput::KEY_FN - 1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
} while(keypress != 0);
|
||||||
}
|
}
|
||||||
void printLocalTime()
|
void printLocalTime()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user