move the real time variable spindle out of the prep function and in the ISR.