diff --git a/grbl/config.h b/grbl/config.h index 4534b3e..05f45d2 100644 --- a/grbl/config.h +++ b/grbl/config.h @@ -111,10 +111,11 @@ // #define HOMING_CYCLE_2 // OPTIONAL: Uncomment and add axes mask to enable // NOTE: The following are two examples to setup homing for 2-axis machines. -#define HOMING_CYCLE_0 ((1<is_pwm_rate_adjusted) { spindle_set_speed(SPINDLE_PWM_OFF_VALUE); } + if (st.exec_block->is_pwm_rate_adjusted) { spindle_set_speed(spindle_pwm_off_value); } #endif system_set_exec_state_flag(EXEC_CYCLE_STOP); // Flag main program for cycle end return; // Nothing to do but exit. @@ -948,7 +948,7 @@ void st_prep_buffer() prep.current_spindle_pwm = spindle_compute_pwm_value(rpm); } else { sys.spindle_speed = 0.0; - prep.current_spindle_pwm = SPINDLE_PWM_OFF_VALUE; + prep.current_spindle_pwm = spindle_pwm_off_value; } bit_false(sys.step_control,STEP_CONTROL_UPDATE_SPINDLE_PWM); }