diff --git a/examples/companion_radio/Button.cpp b/examples/companion_radio/Button.cpp index 161bb6aa..09172404 100644 --- a/examples/companion_radio/Button.cpp +++ b/examples/companion_radio/Button.cpp @@ -97,6 +97,7 @@ void Button::handleStateChange() { } else { // Long press already handled in update() _state = IDLE; + _clickCount = 0; // Reset click count after long press } } } diff --git a/examples/companion_radio/Button.h b/examples/companion_radio/Button.h index a7406824..74e5b3f7 100644 --- a/examples/companion_radio/Button.h +++ b/examples/companion_radio/Button.h @@ -5,7 +5,7 @@ // Button timing configuration #define BUTTON_DEBOUNCE_TIME_MS 50 // Debounce time in ms -#define BUTTON_CLICK_TIMEOUT_MS 400 // Max time between clicks for multi-click +#define BUTTON_CLICK_TIMEOUT_MS 500 // Max time between clicks for multi-click #define BUTTON_LONG_PRESS_TIME_MS 5000 // Time to trigger long press (5 seconds) #define BUTTON_READ_INTERVAL_MS 10 // How often to read the button diff --git a/examples/companion_radio/UITask.cpp b/examples/companion_radio/UITask.cpp index 15897fa2..7b2a6c52 100644 --- a/examples/companion_radio/UITask.cpp +++ b/examples/companion_radio/UITask.cpp @@ -311,12 +311,8 @@ void UITask::handleButtonAnyPress() { if (_display != NULL) { if (!_display->isOn()) { _display->turnOn(); - _need_refresh = true; - } else { - // Turn on display - _display->turnOn(); - _need_refresh = true; } + _need_refresh = true; _auto_off = millis() + AUTO_OFF_MILLIS; // extend auto-off timer } }