Skip to content

Commit b939c16

Browse files
committed
upd
1 parent 67c6629 commit b939c16

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=EncButton
2-
version=3.6.2
2+
version=3.6.3
33
author=AlexGyver <[email protected]>
44
maintainer=AlexGyver <[email protected]>
55
sentence=Light and powerful library for button and encoder operation for Arduino

src/core/VirtButton.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,8 @@ class VirtButton {
397397
}
398398

399399
// вызвать обработчик
400-
void call() {
401-
if (action()) {
400+
void call(bool force = false) { // todo force заменить на флаг
401+
if (force || action()) {
402402
#ifndef EB_NO_CALLBACK
403403
if (cb) {
404404
EB_self = this;

src/core/VirtEncButton.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class VirtEncButton : public VirtButton, public VirtEncoder {
107107
bool tick(const int8_t state, const bool btn) {
108108
clear();
109109
bool f = tickRaw(state, btn);
110-
if (f) call();
110+
if (f) call(true);
111111
return f;
112112
}
113113

0 commit comments

Comments
 (0)