Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
GyverLibs committed Sep 24, 2024
1 parent 67c6629 commit b939c16
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=EncButton
version=3.6.2
version=3.6.3
author=AlexGyver <[email protected]>
maintainer=AlexGyver <[email protected]>
sentence=Light and powerful library for button and encoder operation for Arduino
Expand Down
4 changes: 2 additions & 2 deletions src/core/VirtButton.h
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,8 @@ class VirtButton {
}

// вызвать обработчик
void call() {
if (action()) {
void call(bool force = false) { // todo force заменить на флаг
if (force || action()) {
#ifndef EB_NO_CALLBACK
if (cb) {
EB_self = this;
Expand Down
2 changes: 1 addition & 1 deletion src/core/VirtEncButton.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class VirtEncButton : public VirtButton, public VirtEncoder {
bool tick(const int8_t state, const bool btn) {
clear();
bool f = tickRaw(state, btn);
if (f) call();
if (f) call(true);
return f;
}

Expand Down

0 comments on commit b939c16

Please sign in to comment.