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 5aaaa9a commit 69d27b1Copy full SHA for 69d27b1
src/EncButton2.h
@@ -340,7 +340,7 @@ class EncButton2 {
340
}
341
} else { // кнопка уже была нажата
342
if (!_EB_readFlag(4)) { // и удержание ещё не зафиксировано
343
- if (debounce < (_holdT << 7)) { // прошло меньше удержания
+ if (debounce < (uint32_t)(_holdT << 7)) { // прошло меньше удержания
344
if (EBState != 0 && EBState != 8) _EB_setFlag(2); // но энкодер повёрнут! Запомнили
345
} else { // прошло больше времени удержания
346
if (!_EB_readFlag(2)) { // и энкодер не повёрнут
@@ -442,4 +442,4 @@ class EncButton2 {
442
// 7 - step
443
// 8 - press
444
};
445
-#endif
+#endif
0 commit comments