change desiredPrescaler to float to guarantee that <= speed is selected