Skip to content

The OneButton::_fsm() function incorrectly changes state after the callback for a long press start event #165

Open

Description

@clarencelocke

The OneButton::_fsm() function incorrectly changes state after the callback for a long press start event. This means that the client callback code would call isLongPressed() and get false, which is not the correct state.

Attached is a proposed patch.

OneButton.patch

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions