Update spindle_control.c

Updated spindle_control.c due to compile error.