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:
This commit is contained in:
Jeff Epler 2021-04-09 08:47:40 -05:00
parent d69ca4a8ae
commit 280aefffb7

View File

@ -65,6 +65,8 @@ void shared_module_softencoder_state_update(rotaryio_incrementalencoder_obj_t *s
return;
}
self->quarter_count += quarter_incr;
if (self->quarter_count >= 4) {
self->position += 1;
self->quarter_count = 0;