From d9667d675699f5645c59cc5450205f024f5bfbef Mon Sep 17 00:00:00 2001 From: Reed Nightingale Date: Sun, 9 Feb 2020 17:09:46 -0800 Subject: [PATCH] Add some debugging lines for now --- menu_main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/menu_main.cpp b/menu_main.cpp index 58b4c97..cd858e9 100644 --- a/menu_main.cpp +++ b/menu_main.cpp @@ -1,6 +1,7 @@ #include "menu_main.h" #include +#include #include "button.h" #include "menu_utils.h" @@ -91,6 +92,10 @@ MenuReturn_e runMainMenu(const ButtonPress_e tuner_button, if(mainMenuSelecting){ uint8_t menu_index = mainMenuSelectedItemRaw/MENU_KNOB_COUNTS_PER_ITEM; //TODO: activate button + Serial.print(F("Select button ")); + Serial.print(menu_index); + Serial.print(F(":")); + Serial.println(mainMenuButtons[menu_index].text); } else{ initSelector(&mainMenuSelectedItemRaw, @@ -127,9 +132,12 @@ MenuReturn_e runMainMenu(const ButtonPress_e tuner_button, Button button; if(findPressedButton(mainMenuButtons,MAIN_MENU_NUM_BUTTONS,&button,touch_point)){ //TODO: activate button + Serial.print(F("Touch button ")); + Serial.println(button.text); } else{ //Touch detected, but not on our buttons, so ignore + Serial.println(F("Touch not on button")); } }//touch_button