Skip to content

Commit

Permalink
wrap debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Oct 20, 2022
1 parent d01d1f8 commit 62aaa49
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Marlin/src/lcd/extui/ftdi_eve_touch_ui/generic/base_screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ bool BaseScreen::buttonStyleCallback(CommandProcessor &cmd, uint8_t tag, uint8_t

#if LCD_TIMEOUT_TO_STATUS > 0
if (EventLoop::get_pressed_tag() != 0) {
SERIAL_ECHO_MSG("buttonStyleCallback, resetting timeout");
#if ENABLED(TOUCH_UI_DEBUG)
SERIAL_ECHO_MSG("buttonStyleCallback, resetting timeout");
#endif
reset_menu_timeout();
}
#endif

if (buttonIsPressed(tag)) {
options = OPT_FLAT;
}
if (buttonIsPressed(tag)) options = OPT_FLAT;

if (style & cmd.STYLE_DISABLED) {
cmd.tag(0);
Expand All @@ -67,9 +67,9 @@ bool BaseScreen::buttonStyleCallback(CommandProcessor &cmd, uint8_t tag, uint8_t

void BaseScreen::onIdle() {
#if LCD_TIMEOUT_TO_STATUS > 0
if (EventLoop::get_pressed_tag() != 0) {
if (EventLoop::get_pressed_tag() != 0)
reset_menu_timeout();
}

if ((millis() - last_interaction) > LCD_TIMEOUT_TO_STATUS) {
reset_menu_timeout();
#if ENABLED(TOUCH_UI_DEBUG)
Expand Down

0 comments on commit 62aaa49

Please sign in to comment.