LennartHennigs / ESPRotary

Arduino/ESP library to simplify reading rotary encoder data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reset with parameter doesn't work

ab-it opened this issue · comments

commented

last_position = (lower_bound > p) ? lower_bound * steps_per_click : p;

p needs to be multiplied by steps_per_click:

last_position = (lower_bound > p) ? lower_bound * steps_per_click : p * steps_per_click;

Thx for pointing this out. Fixed it!