File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 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## Баги и обратная связь
Original file line number Diff line number Diff line change 11name =EncButton
2- version =1.21
2+ version =1.22
33author =AlexGyver <
[email protected] >
44maintainer =AlexGyver <
[email protected] >
55sentence =Light and fast library for button and encoder operation for Arduino
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments