Moved rotary encoder step action out of interrupt handler