We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8c4a80 commit 4ca3680Copy full SHA for 4ca3680
1 file changed
src/LatchingButton.cpp
@@ -65,7 +65,7 @@ BUTTONSTATUS LatchingButton::getStatus()
65
case WASSHORTPRESSED:
66
// Toggle state.
67
_latched = !_latched;
68
- return convertStateToButtonStatus();
+ return WASSHORTPRESSED;
69
70
case WASLONGPRESSED:
71
if (_resetOnLongPress)
@@ -76,7 +76,7 @@ BUTTONSTATUS LatchingButton::getStatus()
76
{
77
78
}
79
+ return WASLONGPRESSED;
80
81
case ISPRESSED:
82
case NOTPRESSED:
0 commit comments