RAyWB seems there is a typo in Drivers.cppline 222 :if(EVENT_SPINDLE_CW(rpm)should be : if(EVENT_SPINDLE_<font color="#ff0000">CCW</font>(rpm)just found that during writing PWM implementation