From: b Date: Sat, 28 Dec 2024 16:56:27 +0000 (+0100) Subject: remove event debug X-Git-Url: http://bicyclesonthemoon.info/git-projects/?a=commitdiff_plain;h=41c74e90311ff49040a10055028cc4a2dc5cdc97;p=klavirko%2Fui remove event debug --- diff --git a/gui.c b/gui.c index ea244d1..162ab28 100644 --- a/gui.c +++ b/gui.c @@ -1211,43 +1211,43 @@ void handle_gui(void) else ++gui_event_r; - if ((event & EVENT_BITS) == EVENT_JOG) - { - debug_string("JOG", 1); - if ((event & JOG_BITS) == JOG_PLUS) - debug_string("+", 1); - if ((event & JOG_BITS) == JOG_MINUS) - debug_string("-", 1); - debug_dec(event & JOG_TIME_BITS, 1, 0); - } - else - { - if (event & BUTTON_A) - debug_string("A", 1); - if (event & BUTTON_B) - debug_string("B", 1); - if (event & BUTTON_C) - debug_string("C", 1); - if (event & BUTTON_D) - debug_string("D", 1); - if (event & BUTTON_E) - debug_string("E", 1); - if (event & BUTTON_F) - debug_string("F", 1); - if (event & BUTTON_X) - debug_string("X", 1); - if (event & BUTTON_Y) - debug_string("Y", 1); - if ((event & EVENT_BITS) == EVENT_PRESS) - debug_string(" PRESS", 1); - if ((event & EVENT_BITS) == EVENT_RELEASE) - debug_string(" RELEASE", 1); - if ((event & EVENT_BITS) == EVENT_HOLD) - debug_string(" HOLD", 1); - if (event & EVENT_WAS_HOLD) - debug_string(" (WAS HOLD)", 1); - } - debug_string("\r\n", 1); + // if ((event & EVENT_BITS) == EVENT_JOG) + // { + // debug_string("JOG", 1); + // if ((event & JOG_BITS) == JOG_PLUS) + // debug_string("+", 1); + // if ((event & JOG_BITS) == JOG_MINUS) + // debug_string("-", 1); + // debug_dec(event & JOG_TIME_BITS, 1, 0); + // } + // else + // { + // if (event & BUTTON_A) + // debug_string("A", 1); + // if (event & BUTTON_B) + // debug_string("B", 1); + // if (event & BUTTON_C) + // debug_string("C", 1); + // if (event & BUTTON_D) + // debug_string("D", 1); + // if (event & BUTTON_E) + // debug_string("E", 1); + // if (event & BUTTON_F) + // debug_string("F", 1); + // if (event & BUTTON_X) + // debug_string("X", 1); + // if (event & BUTTON_Y) + // debug_string("Y", 1); + // if ((event & EVENT_BITS) == EVENT_PRESS) + // debug_string(" PRESS", 1); + // if ((event & EVENT_BITS) == EVENT_RELEASE) + // debug_string(" RELEASE", 1); + // if ((event & EVENT_BITS) == EVENT_HOLD) + // debug_string(" HOLD", 1); + // if (event & EVENT_WAS_HOLD) + // debug_string(" (WAS HOLD)", 1); + // } + // debug_string("\r\n", 1); // execute appropriate event handler for current state switch (gui_state)