From 1f0ab33787d4bc8c827af38a10c251b5139164de Mon Sep 17 00:00:00 2001 From: cprezzi Date: Thu, 18 May 2017 12:47:37 +0200 Subject: [PATCH] Merged new $ params --- grbl/config.h | 9 +- grbl/cpu_map.h | 6 +- grbl/defaults.h | 209 ++++++++++++++++++++--------------------- grbl/settings.c | 3 + grbl/settings.h | 5 +- grbl/spindle_control.c | 19 ++-- grbl/stepper.c | 4 +- 7 files changed, 125 insertions(+), 130 deletions(-) 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); }