We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6473500 commit 5aaaa9aCopy full SHA for 5aaaa9a
src/EncButton.h
@@ -381,7 +381,7 @@ class EncButton {
381
}
382
} else { // кнопка уже была нажата
383
if (!_EB_readFlag(4)) { // и удержание ещё не зафиксировано
384
- if (debounce < (_holdT << 7)) { // прошло меньше удержания
+ if (debounce < (uint32_t)(_holdT << 7)) { // прошло меньше удержания
385
if (EBState != 0 && EBState != 8) _EB_setFlag(2); // но энкодер повёрнут! Запомнили
386
} else { // прошло больше времени удержания
387
if (!_EB_readFlag(2)) { // и энкодер не повёрнут
@@ -478,4 +478,4 @@ class EncButton {
478
// 8 - press
479
};
480
481
-#endif
+#endif
0 commit comments