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 )
2
2
[ ![ Foo] ( https://img.shields.io/badge/Website-AlexGyver.ru-blue.svg?style=flat-square )] ( https://alexgyver.ru/ )
3
3
[ ![ 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/ )
4
4
@@ -533,6 +533,7 @@ void loop() {
533
533
- v1.19.4 - фикс EncButton2
534
534
- v1.20 - исправлена критическая ошибка в EncButton2
535
535
- v1.21 - EB_HALFSTEP_ENC теперь работает для обычного режима
536
+ - v1.22 - улучшен EB_HALFSTEP_ENC для обычного режима
536
537
537
538
<a id =" feedback " ></a >
538
539
## Баги и обратная связь
Original file line number Diff line number Diff line change 1
1
name =EncButton
2
- version =1.21
2
+ version =1.22
3
3
author =AlexGyver <
[email protected] >
4
4
maintainer =AlexGyver <
[email protected] >
5
5
sentence =Light and fast library for button and encoder operation for Arduino
Original file line number Diff line number Diff line change 47
47
v1.19.4 - фикс EncButton2
48
48
v1.20 - исправлена критическая ошибка в EncButton2
49
49
v1.21 - EB_HALFSTEP_ENC теперь работает для обычного режима
50
+ v1.22 - улучшен EB_HALFSTEP_ENC для обычного режима
50
51
*/
51
52
52
53
#ifndef _EncButton_h
@@ -364,7 +365,7 @@ class EncButton {
364
365
_debTmr = ms;
365
366
}
366
367
#ifdef EB_HALFSTEP_ENC // полушаговый энкодер
367
- if (state == 0b11 || state = = 0b00 ) _encRST = 1 ;
368
+ if (state != 0b11 && state ! = 0b00 ) _encRST = 1 ;
368
369
#else
369
370
if (state == 0b00 ) _encRST = 1 ;
370
371
#endif
Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ class EncButton2 {
308
308
_debTmr = ms;
309
309
}
310
310
#ifdef EB_HALFSTEP_ENC // полушаговый энкодер
311
- if (state == 0b11 || state = = 0b00 ) _encRST = 1 ;
311
+ if (state != 0b11 && state ! = 0b00 ) _encRST = 1 ;
312
312
#else
313
313
if (state == 0b00 ) _encRST = 1 ;
314
314
#endif
You can’t perform that action at this time.
0 commit comments