Skip to content

Commit

Permalink
Merge pull request #23 from mathieucarbou/compilation
Browse files Browse the repository at this point in the history
Compilation issue (fix #24)
  • Loading branch information
rwmingis authored Nov 30, 2023
2 parents 99df3c4 + 14e7236 commit 92d6d2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions InterruptButton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ void IRAM_ATTR InterruptButton::readButton(void *arg){
startTimer(btn->m_buttonPollTimer, btn->m_pollIntervalUS, &readButton, btn, "CP2_"); // Keep sampling pin state
return;
}
[[fallthrough]] // Planned spill through here (no break) if logic requires, ie keyDown confirmed.
[[fallthrough]]; // Planned spill through here (no break) if logic requires, ie keyDown confirmed.
case Pressing: // VALID KEYDOWN, assumed pressed if it had valid polls more than half the time
btn->action(btn, Event_KeyDown); // Add the keyDown action to the relevant queue
if(btn->eventEnabled(Event_LongKeyPress) && btn->eventActions[m_menuLevel][Event_LongKeyPress] != nullptr){
Expand Down Expand Up @@ -176,7 +176,7 @@ void IRAM_ATTR InterruptButton::readButton(void *arg){
}
startTimer(btn->m_buttonPollTimer, btn->m_pollIntervalUS, &readButton, btn, "W4R_invalidPoll"); // Keep sampling pin state until released
}
[[fallthrough]] // Intended spill through here (no break) to "Releasing" once keyUp confirmed.
[[fallthrough]]; // Intended spill through here (no break) to "Releasing" once keyUp confirmed.

case Releasing:
killTimer(btn->m_buttonLPandRepeatTimer);
Expand Down

0 comments on commit 92d6d2a

Please sign in to comment.