Skip to content
This repository was archived by the owner on Feb 28, 2024. It is now read-only.

Commit 1f9f0a8

Browse files
Update QEI.cpp
Fixed Typo
1 parent 9d0efaf commit 1f9f0a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utility/QEI/QEI.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,10 @@ void QEI::encode(void) {
262262

263263
if(encoding_ == X1_ENCODING){
264264
if(currState_ == 0x3){
265-
pulses++;
265+
pulses_++;
266266
}
267267
if(currState_ == 0x2){
268-
pulses--;
268+
pulses_--;
269269
}
270270
} else if (encoding_ == X2_ENCODING) {
271271

0 commit comments

Comments
 (0)