Re.cpp improve rotary encoder stability