Skip to content

Commit 2ccb647

Browse files
committed
upd
1 parent c78f375 commit 2ccb647

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Foo](https://img.shields.io/badge/Version-1.21-brightgreen.svg?style=flat-square)](#versions)
1+
[![Foo](https://img.shields.io/badge/Version-1.22-brightgreen.svg?style=flat-square)](#versions)
22
[![Foo](https://img.shields.io/badge/Website-AlexGyver.ru-blue.svg?style=flat-square)](https://alexgyver.ru/)
33
[![Foo](https://img.shields.io/badge/%E2%82%BD$%E2%82%AC%20%D0%9D%D0%B0%20%D0%BF%D0%B8%D0%B2%D0%BE-%D1%81%20%D1%80%D1%8B%D0%B1%D0%BA%D0%BE%D0%B9-orange.svg?style=flat-square)](https://alexgyver.ru/support_alex/)
44

@@ -533,6 +533,7 @@ void loop() {
533533
- v1.19.4 - фикс EncButton2
534534
- v1.20 - исправлена критическая ошибка в EncButton2
535535
- v1.21 - EB_HALFSTEP_ENC теперь работает для обычного режима
536+
- v1.22 - улучшен EB_HALFSTEP_ENC для обычного режима
536537

537538
<a id="feedback"></a>
538539
## Баги и обратная связь

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=1.21
2+
version=1.22
33
author=AlexGyver <[email protected]>
44
maintainer=AlexGyver <[email protected]>
55
sentence=Light and fast library for button and encoder operation for Arduino

src/EncButton.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
v1.19.4 - фикс EncButton2
4848
v1.20 - исправлена критическая ошибка в EncButton2
4949
v1.21 - EB_HALFSTEP_ENC теперь работает для обычного режима
50+
v1.22 - улучшен EB_HALFSTEP_ENC для обычного режима
5051
*/
5152

5253
#ifndef _EncButton_h
@@ -364,7 +365,7 @@ class EncButton {
364365
_debTmr = ms;
365366
}
366367
#ifdef EB_HALFSTEP_ENC // полушаговый энкодер
367-
if (state == 0b11 || state == 0b00) _encRST = 1;
368+
if (state != 0b11 && state != 0b00) _encRST = 1;
368369
#else
369370
if (state == 0b00) _encRST = 1;
370371
#endif

src/EncButton2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ class EncButton2 {
308308
_debTmr = ms;
309309
}
310310
#ifdef EB_HALFSTEP_ENC // полушаговый энкодер
311-
if (state == 0b11 || state == 0b00) _encRST = 1;
311+
if (state != 0b11 && state != 0b00) _encRST = 1;
312312
#else
313313
if (state == 0b00) _encRST = 1;
314314
#endif

0 commit comments

Comments
 (0)