So I've got some very basic code for a STM32 to read an encoder using timer 1 in encoder mode.This first routine works fine counting up and down as expected, printing CW (Clockwise) while counting up and CCW (Counter Clockwise) while counting down......