Fixed button hold handling

This commit is contained in:
2022-09-08 22:27:47 +02:00
parent a7242a4a7d
commit 61fddd0724
8 changed files with 15 additions and 3 deletions

View File

@@ -110,6 +110,7 @@ void buttonReleasedCommon(espgui::Button button)
void BobbyButtons::rawButtonPressed(uint8_t button)
{
ESP_LOGI(TAG, "%hhu", button);
//Base::rawButtonPressed(button);
if (const auto translated = translateRawButton(button))
buttonPressed(*translated);
@@ -117,6 +118,7 @@ void BobbyButtons::rawButtonPressed(uint8_t button)
void BobbyButtons::rawButtonReleased(uint8_t button)
{
ESP_LOGI(TAG, "%hhu", button);
//Base::rawButtonReleased(button);
if (const auto translated = translateRawButton(button))
buttonReleased(*translated);