Skip to content

Commit 280aeff

Browse files
committed
IncrementalEncoder: Re-add missing update of quarter_count
This lost line caused incremental encoders to stay stuck at 0 forever. I seem to have lost it while trying to create tidy commits :frown:
1 parent d69ca4a commit 280aeff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shared-module/rotaryio/IncrementalEncoder.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ void shared_module_softencoder_state_update(rotaryio_incrementalencoder_obj_t *s
6565
return;
6666
}
6767

68+
self->quarter_count += quarter_incr;
69+
6870
if (self->quarter_count >= 4) {
6971
self->position += 1;
7072
self->quarter_count = 0;

0 commit comments

Comments
 (0)