add start button debug display output

This commit is contained in:
interfisch 2024-07-12 21:44:40 +02:00
parent 9c1fd5f7dd
commit ec9e9f09ee
2 changed files with 4 additions and 0 deletions

View File

@ -353,6 +353,9 @@ void display_standingDisarmedDisplay(ESCSerialComm& escFront, ESCSerialComm& esc
if (control_buttonB){
display.print(" B");
}
if (button_start_state){
display.print(" S");
}
}

View File

@ -610,6 +610,7 @@ void readButtons() {
static bool button_start_wait_release_flag=false;
bool last_button_start_state=button_start_state;
if (loopmillis > button_start_lastchange+DEBOUNCE_TIME) { //wait some time after last change
if (digitalRead(PIN_PWRBUTTON) && !button_start_state) { //start engine button pressed and was not pressed before
button_start_state=true; //pressed