Skip to content

Commit

Permalink
Merge pull request #122 from IhorNehrutsa/cppcheck
Browse files Browse the repository at this point in the history
Fix funcArgNamesDifferent with cppcheck
  • Loading branch information
mathertel committed Dec 2, 2023
2 parents 5157fc5 + 2de5bae commit 1832bfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/OneButton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ void OneButton::_fsm(bool activeLevel)
_newState(OneButton::OCS_UP);
_startTime = now; // remember starting time

} else if ((activeLevel) && (waitTime > _press_ms)) {
} else if (waitTime > _press_ms) {
if (_longPressStartFunc) _longPressStartFunc();
if (_paramLongPressStartFunc) _paramLongPressStartFunc(_longPressStartFuncParam);
_newState(OneButton::OCS_PRESS);
Expand Down
2 changes: 1 addition & 1 deletion src/OneButton.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ class OneButton
* level is given by the parameter.
* Run the finite state machine (FSM) using the given level.
*/
void tick(bool level);
void tick(bool activeLevel);


/**
Expand Down

0 comments on commit 1832bfb

Please sign in to comment.