Skip to content

Commit 5514817

Browse files
committed
Tidy up 'if'
Tidy up a single-line if-statement.
1 parent abf3b8a commit 5514817

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/OneButton.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,8 @@ bool OneButton::debounce(const bool value) {
222222
now = millis(); // current (relative) time in msecs.
223223

224224
// Don't debounce going into active state, if _debounce_ms is negative
225-
if(value && _debounce_ms < 0){
225+
if(value && _debounce_ms < 0)
226226
debouncedLevel = value;
227-
}
228227

229228
if (_lastDebounceLevel == value) {
230229
if (now - _lastDebounceTime >= abs(_debounce_ms))

0 commit comments

Comments
 (0)