Recoded rotary encoder reading for 4 click encoder