Bug in timer ISR

ISR passed the incorrect value to the setmode switch statement.