We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6a8a68 commit 79c0966Copy full SHA for 79c0966
1 file changed
src/emc/motion/control.c
@@ -1906,7 +1906,7 @@ static void output_to_hal(void)
1906
*(emcmot_hal_data->spindle[spindle_num].spindle_speed_out_abs) = fabs(speed);
1907
*(emcmot_hal_data->spindle[spindle_num].spindle_speed_out_rps_abs) = fabs(speed / 60);
1908
*(emcmot_hal_data->spindle[spindle_num].spindle_on) =
1909
- ((emcmotStatus->spindle_status[spindle_num].state * speed) !=0) ? 1 : 0;
+ ((emcmotStatus->spindle_status[spindle_num].state) !=0) ? 1 : 0;
1910
*(emcmot_hal_data->spindle[spindle_num].spindle_forward) = (speed > 0) ? 1 : 0;
1911
*(emcmot_hal_data->spindle[spindle_num].spindle_reverse) = (speed < 0) ? 1 : 0;
1912
*(emcmot_hal_data->spindle[spindle_num].spindle_brake) =
0 commit comments