From a471cd26e1e6a0df78b44b3fbc0885465632b26f Mon Sep 17 00:00:00 2001 From: Thomas Moore Date: Thu, 8 Feb 2018 02:02:48 -0600 Subject: [PATCH] [1.1.x] Enable Z axis and delta sensorless homing (#9532) --- Marlin/Conditionals_post.h | 5 + Marlin/Configuration_adv.h | 9 +- Marlin/Marlin_main.cpp | 102 +++++++++++----- Marlin/SanityCheck.h | 8 ++ Marlin/configuration_store.cpp | 114 ++++++++++++------ .../AlephObjects/TAZ4/Configuration_adv.h | 9 +- .../Anet/A6/Configuration_adv.h | 9 +- .../Anet/A8/Configuration_adv.h | 9 +- .../BIBO/TouchX/Configuration_adv.h | 9 +- .../BQ/Hephestos/Configuration_adv.h | 9 +- .../BQ/Hephestos_2/Configuration_adv.h | 9 +- .../BQ/WITBOX/Configuration_adv.h | 9 +- .../Cartesio/Configuration_adv.h | 9 +- .../Creality/CR-10/Configuration_adv.h | 9 +- .../Creality/CR-10S/Configuration_adv.h | 9 +- .../Creality/Ender/Configuration_adv.h | 9 +- .../Felix/Configuration_adv.h | 9 +- .../FolgerTech/i3-2020/Configuration_adv.h | 9 +- .../Infitary/i3-M508/Configuration_adv.h | 9 +- .../JGAurora/A5/Configuration_adv.h | 9 +- .../Malyan/M150/Configuration_adv.h | 9 +- .../Micromake/C1/enhanced/Configuration_adv.h | 9 +- .../RigidBot/Configuration_adv.h | 9 +- .../SCARA/Configuration_adv.h | 9 +- .../Sanguinololu/Configuration_adv.h | 9 +- .../TinyBoy2/Configuration_adv.h | 9 +- .../Velleman/K8200/Configuration_adv.h | 9 +- .../Velleman/K8400/Configuration_adv.h | 9 +- .../Wanhao/Duplicator 6/Configuration_adv.h | 9 +- .../FLSUN/auto_calibrate/Configuration_adv.h | 9 +- .../delta/FLSUN/kossel/Configuration_adv.h | 9 +- .../FLSUN/kossel_mini/Configuration_adv.h | 9 +- .../delta/generic/Configuration_adv.h | 9 +- .../delta/kossel_mini/Configuration_adv.h | 9 +- .../delta/kossel_pro/Configuration_adv.h | 9 +- .../delta/kossel_xl/Configuration_adv.h | 9 +- .../gCreate/gMax1.5+/Configuration_adv.h | 9 +- .../makibox/Configuration_adv.h | 9 +- .../tvrrug/Round2/Configuration_adv.h | 9 +- .../wt150/Configuration_adv.h | 9 +- Marlin/tmc_util.cpp | 6 +- 41 files changed, 347 insertions(+), 212 deletions(-) diff --git a/Marlin/Conditionals_post.h b/Marlin/Conditionals_post.h index bac8b06bfc..8509a4c8b8 100644 --- a/Marlin/Conditionals_post.h +++ b/Marlin/Conditionals_post.h @@ -649,6 +649,11 @@ #define E3_IS_TRINAMIC (ENABLED(E3_IS_TMC2130) || ENABLED(E3_IS_TMC2208)) #define E4_IS_TRINAMIC (ENABLED(E4_IS_TMC2130) || ENABLED(E4_IS_TMC2208)) + // Disable Z axis sensorless homing if a probe is used to home the Z axis + #if ENABLED(SENSORLESS_HOMING) && HOMING_Z_WITH_PROBE + #undef Z_HOMING_SENSITIVITY + #endif + // Endstops and bed probe #define HAS_X_MIN (PIN_EXISTS(X_MIN) && !IS_X2_ENDSTOP(X,MIN) && !IS_Y2_ENDSTOP(X,MIN) && !IS_Z2_OR_PROBE(X,MIN)) #define HAS_X_MAX (PIN_EXISTS(X_MAX) && !IS_X2_ENDSTOP(X,MAX) && !IS_Y2_ENDSTOP(X,MAX) && !IS_Z2_OR_PROBE(X,MAX)) diff --git a/Marlin/Configuration_adv.h b/Marlin/Configuration_adv.h index 169bf8fddf..36bee05020 100644 --- a/Marlin/Configuration_adv.h +++ b/Marlin/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index ae54806203..d27fc75054 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -2857,6 +2857,19 @@ static void do_homing_move(const AxisEnum axis, const float distance, const floa if (axis == Z_AXIS) probing_pause(true); #endif + // Disable stealthChop if used. Enable diag1 pin on driver. + #if ENABLED(SENSORLESS_HOMING) + #if ENABLED(X_IS_TMC2130) && defined(X_HOMING_SENSITIVITY) + if (axis == X_AXIS) tmc_sensorless_homing(stepperX); + #endif + #if ENABLED(Y_IS_TMC2130) && defined(Y_HOMING_SENSITIVITY) + if (axis == Y_AXIS) tmc_sensorless_homing(stepperY); + #endif + #if ENABLED(Z_IS_TMC2130) && defined(Z_HOMING_SENSITIVITY) + if (axis == Z_AXIS) tmc_sensorless_homing(stepperZ); + #endif + #endif + // Tell the planner the axis is at 0 current_position[axis] = 0; @@ -2883,6 +2896,19 @@ static void do_homing_move(const AxisEnum axis, const float distance, const floa endstops.hit_on_purpose(); + // Re-enable stealthChop if used. Disable diag1 pin on driver. + #if ENABLED(SENSORLESS_HOMING) + #if ENABLED(X_IS_TMC2130) && defined(X_HOMING_SENSITIVITY) + if (axis == X_AXIS) tmc_sensorless_homing(stepperX, false); + #endif + #if ENABLED(Y_IS_TMC2130) && defined(Y_HOMING_SENSITIVITY) + if (axis == Y_AXIS) tmc_sensorless_homing(stepperY, false); + #endif + #if ENABLED(Z_IS_TMC2130) && defined(Z_HOMING_SENSITIVITY) + if (axis == Z_AXIS) tmc_sensorless_homing(stepperZ, false); + #endif + #endif + #if ENABLED(DEBUG_LEVELING_FEATURE) if (DEBUGGING(LEVELING)) { SERIAL_ECHOPAIR("<<< do_homing_move(", axis_codes[axis]); @@ -2946,16 +2972,6 @@ static void homeaxis(const AxisEnum axis) { if (axis == Z_AXIS) stepper.set_homing_flag_z(true); #endif - // Disable stealthChop if used. Enable diag1 pin on driver. - #if ENABLED(SENSORLESS_HOMING) - #if ENABLED(X_IS_TMC2130) - if (axis == X_AXIS) tmc_sensorless_homing(stepperX); - #endif - #if ENABLED(Y_IS_TMC2130) - if (axis == Y_AXIS) tmc_sensorless_homing(stepperY); - #endif - #endif - // Fast move towards endstop until triggered #if ENABLED(DEBUG_LEVELING_FEATURE) if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("Home 1 Fast:"); @@ -3056,16 +3072,6 @@ static void homeaxis(const AxisEnum axis) { #endif - // Re-enable stealthChop if used. Disable diag1 pin on driver. - #if ENABLED(SENSORLESS_HOMING) - #if ENABLED(X_IS_TMC2130) - if (axis == X_AXIS) tmc_sensorless_homing(stepperX, false); - #endif - #if ENABLED(Y_IS_TMC2130) - if (axis == Y_AXIS) tmc_sensorless_homing(stepperY, false); - #endif - #endif - // Put away the Z probe #if HOMING_Z_WITH_PROBE if (axis == Z_AXIS && STOW_PROBE()) return; @@ -3757,12 +3763,38 @@ inline void gcode_G4() { ZERO(current_position); sync_plan_position(); + // Disable stealthChop if used. Enable diag1 pin on driver. + #if ENABLED(SENSORLESS_HOMING) + #if ENABLED(X_IS_TMC2130) && defined(X_HOMING_SENSITIVITY) + tmc_sensorless_homing(stepperX); + #endif + #if ENABLED(Y_IS_TMC2130) && defined(Y_HOMING_SENSITIVITY) + tmc_sensorless_homing(stepperY); + #endif + #if ENABLED(Z_IS_TMC2130) && defined(Z_HOMING_SENSITIVITY) + tmc_sensorless_homing(stepperZ); + #endif + #endif + // Move all carriages together linearly until an endstop is hit. current_position[X_AXIS] = current_position[Y_AXIS] = current_position[Z_AXIS] = (delta_height + 10); feedrate_mm_s = homing_feedrate(X_AXIS); buffer_line_to_current_position(); stepper.synchronize(); + // Re-enable stealthChop if used. Disable diag1 pin on driver. + #if ENABLED(SENSORLESS_HOMING) + #if ENABLED(X_IS_TMC2130) && defined(X_HOMING_SENSITIVITY) + tmc_sensorless_homing(stepperX, false); + #endif + #if ENABLED(Y_IS_TMC2130) && defined(Y_HOMING_SENSITIVITY) + tmc_sensorless_homing(stepperY, false); + #endif + #if ENABLED(Z_IS_TMC2130) && defined(Z_HOMING_SENSITIVITY) + tmc_sensorless_homing(stepperZ, false); + #endif + #endif + // If an endstop was not hit, then damage can occur if homing is continued. // This can occur if the delta height not set correctly. if (!(Endstops::endstop_hit_bits & (_BV(X_MAX) | _BV(Y_MAX) | _BV(Z_MAX)))) { @@ -10586,17 +10618,29 @@ inline void gcode_M502() { if (parser.seen(axis_codes[X_AXIS])) tmc_set_sgt(stepperX, extended_axis_codes[TMC_X], parser.value_int()); \ else tmc_get_sgt(stepperX, extended_axis_codes[TMC_X]); } while(0) - #if ENABLED(X_IS_TMC2130) || ENABLED(IS_TRAMS) - TMC_SET_GET_SGT(X,X); + #ifdef X_HOMING_SENSITIVITY + #if ENABLED(X_IS_TMC2130) || ENABLED(IS_TRAMS) + TMC_SET_GET_SGT(X,X); + #endif + #if ENABLED(X2_IS_TMC2130) + TMC_SET_GET_SGT(X,X2); + #endif #endif - #if ENABLED(X2_IS_TMC2130) - TMC_SET_GET_SGT(X,X2); + #ifdef Y_HOMING_SENSITIVITY + #if ENABLED(Y_IS_TMC2130) || ENABLED(IS_TRAMS) + TMC_SET_GET_SGT(Y,Y); + #endif + #if ENABLED(Y2_IS_TMC2130) + TMC_SET_GET_SGT(Y,Y2); + #endif #endif - #if ENABLED(Y_IS_TMC2130) || ENABLED(IS_TRAMS) - TMC_SET_GET_SGT(Y,Y); - #endif - #if ENABLED(Y2_IS_TMC2130) - TMC_SET_GET_SGT(Y,Y2); + #ifdef Z_HOMING_SENSITIVITY + #if ENABLED(Z_IS_TMC2130) || ENABLED(IS_TRAMS) + TMC_SET_GET_SGT(Z,Z); + #endif + #if ENABLED(Z2_IS_TMC2130) + TMC_SET_GET_SGT(Z,Z2); + #endif #endif } #endif // SENSORLESS_HOMING diff --git a/Marlin/SanityCheck.h b/Marlin/SanityCheck.h index 9d97ee130e..6a5682af1c 100644 --- a/Marlin/SanityCheck.h +++ b/Marlin/SanityCheck.h @@ -1492,6 +1492,14 @@ static_assert(1 >= 0 #error "E4_CS_PIN is required for E4_IS_TMC2130. Define E4_CS_PIN in Configuration_adv.h." #endif + // Require STEALTHCHOP for SENSORLESS_HOMING on DELTA as the transition from spreadCycle to stealthChop + // is necessary in order to reset the stallGuard indication between the initial movement of all three + // towers to +Z and the individual homing of each tower. This restriction can be removed once a means of + // clearing the stallGuard activated status is found. + #if ENABLED(SENSORLESS_HOMING) && ENABLED(DELTA) && !ENABLED(STEALTHCHOP) + #error "SENSORLESS_HOMING on DELTA currently requires STEALTHCHOP." + #endif + #elif ENABLED(SENSORLESS_HOMING) #error "SENSORLESS_HOMING requires TMC2130 stepper drivers." diff --git a/Marlin/configuration_store.cpp b/Marlin/configuration_store.cpp index 2d3d5fbd93..45b21d4ef6 100644 --- a/Marlin/configuration_store.cpp +++ b/Marlin/configuration_store.cpp @@ -37,7 +37,7 @@ */ // Change EEPROM version if the structure changes -#define EEPROM_VERSION "V50" +#define EEPROM_VERSION "V51" #define EEPROM_OFFSET 100 // Check the integrity of data offsets. @@ -216,7 +216,7 @@ typedef struct SettingsDataStruct { // HAS_TRINAMIC // uint16_t tmc_stepper_current[11]; // M906 X Y Z X2 Y2 Z2 E0 E1 E2 E3 E4 - int16_t tmc_sgt[2]; // M914 X Y + int16_t tmc_sgt[XYZ]; // M914 X Y Z // // LIN_ADVANCE @@ -740,15 +740,20 @@ void MarlinSettings::postprocess() { // // TMC2130 Sensorless homing threshold // - int16_t thrs[2] = { + int16_t thrs[XYZ] = { #if ENABLED(SENSORLESS_HOMING) - #if ENABLED(X_IS_TMC2130) + #if ENABLED(X_IS_TMC2130) && defined(X_HOMING_SENSITIVITY) stepperX.sgt(), #else 0, #endif - #if ENABLED(Y_IS_TMC2130) - stepperY.sgt() + #if ENABLED(Y_IS_TMC2130) && defined(Y_HOMING_SENSITIVITY) + stepperY.sgt(), + #else + 0 + #endif + #if ENABLED(Z_IS_TMC2130) && defined(Z_HOMING_SENSITIVITY) + stepperZ.sgt() #else 0 #endif @@ -1263,22 +1268,35 @@ void MarlinSettings::postprocess() { * TMC2130 Sensorless homing threshold. * X and X2 use the same value * Y and Y2 use the same value + * Z and Z2 use the same value */ - int16_t thrs[2]; + int16_t thrs[XYZ]; EEPROM_READ(thrs); #if ENABLED(SENSORLESS_HOMING) if (!validating) { - #if ENABLED(X_IS_TMC2130) - stepperX.sgt(thrs[0]); + #ifdef X_HOMING_SENSITIVITY + #if ENABLED(X_IS_TMC2130) + stepperX.sgt(thrs[0]); + #endif + #if ENABLED(X2_IS_TMC2130) + stepperX2.sgt(thrs[0]); + #endif #endif - #if ENABLED(X2_IS_TMC2130) - stepperX2.sgt(thrs[0]); + #ifdef Y_HOMING_SENSITIVITY + #if ENABLED(Y_IS_TMC2130) + stepperY.sgt(thrs[1]); + #endif + #if ENABLED(Y2_IS_TMC2130) + stepperY2.sgt(thrs[1]); + #endif #endif - #if ENABLED(Y_IS_TMC2130) - stepperY.sgt(thrs[1]); - #endif - #if ENABLED(Y2_IS_TMC2130) - stepperY2.sgt(thrs[1]); + #ifdef Z_HOMING_SENSITIVITY + #if ENABLED(Z_IS_TMC2130) + stepperZ.sgt(thrs[2]); + #endif + #if ENABLED(Z2_IS_TMC2130) + stepperZ2.sgt(thrs[2]); + #endif #endif } #endif @@ -1748,17 +1766,29 @@ void MarlinSettings::reset() { #endif #if ENABLED(SENSORLESS_HOMING) - #if ENABLED(X_IS_TMC2130) - stepperX.sgt(X_HOMING_SENSITIVITY); + #ifdef X_HOMING_SENSITIVITY + #if ENABLED(X_IS_TMC2130) + stepperX.sgt(X_HOMING_SENSITIVITY); + #endif + #if ENABLED(X2_IS_TMC2130) + stepperX2.sgt(X_HOMING_SENSITIVITY); + #endif #endif - #if ENABLED(X2_IS_TMC2130) - stepperX2.sgt(X_HOMING_SENSITIVITY); + #ifdef Y_HOMING_SENSITIVITY + #if ENABLED(Y_IS_TMC2130) + stepperY.sgt(Y_HOMING_SENSITIVITY); + #endif + #if ENABLED(Y2_IS_TMC2130) + stepperY2.sgt(Y_HOMING_SENSITIVITY); + #endif #endif - #if ENABLED(Y_IS_TMC2130) - stepperY.sgt(Y_HOMING_SENSITIVITY); - #endif - #if ENABLED(Y2_IS_TMC2130) - stepperY2.sgt(Y_HOMING_SENSITIVITY); + #ifdef Z_HOMING_SENSITIVITY + #if ENABLED(Z_IS_TMC2130) + stepperZ.sgt(Z_HOMING_SENSITIVITY); + #endif + #if ENABLED(Z2_IS_TMC2130) + stepperZ2.sgt(Z_HOMING_SENSITIVITY); + #endif #endif #endif @@ -1768,8 +1798,8 @@ void MarlinSettings::reset() { #endif #if HAS_MOTOR_CURRENT_PWM - uint32_t tmp_motor_current_setting[3] = PWM_MOTOR_CURRENT; - for (uint8_t q = 3; q--;) + uint32_t tmp_motor_current_setting[XYZ] = PWM_MOTOR_CURRENT; + for (uint8_t q = XYZ; q--;) stepper.digipot_current(q, (stepper.motor_current_setting[q] = tmp_motor_current_setting[q])); #endif @@ -2298,17 +2328,29 @@ void MarlinSettings::reset() { } CONFIG_ECHO_START; SERIAL_ECHOPGM(" M914"); - #if ENABLED(X_IS_TMC2130) - SERIAL_ECHOPAIR(" X", stepperX.sgt()); + #ifdef X_HOMING_SENSITIVITY + #if ENABLED(X_IS_TMC2130) + SERIAL_ECHOPAIR(" X", stepperX.sgt()); + #endif + #if ENABLED(X2_IS_TMC2130) + SERIAL_ECHOPAIR(" X2 ", stepperX2.sgt()); + #endif #endif - #if ENABLED(X2_IS_TMC2130) - SERIAL_ECHOPAIR(" X2 ", stepperX2.sgt()); + #ifdef Y_HOMING_SENSITIVITY + #if ENABLED(Y_IS_TMC2130) + SERIAL_ECHOPAIR(" Y", stepperY.sgt()); + #endif + #if ENABLED(X2_IS_TMC2130) + SERIAL_ECHOPAIR(" Y2 ", stepperY2.sgt()); + #endif #endif - #if ENABLED(Y_IS_TMC2130) - SERIAL_ECHOPAIR(" Y", stepperY.sgt()); - #endif - #if ENABLED(X2_IS_TMC2130) - SERIAL_ECHOPAIR(" Y2 ", stepperY2.sgt()); + #ifdef Z_HOMING_SENSITIVITY + #if ENABLED(Z_IS_TMC2130) + SERIAL_ECHOPAIR(" Z", stepperZ.sgt()); + #endif + #if ENABLED(Z2_IS_TMC2130) + SERIAL_ECHOPAIR(" Z2 ", stepperZ2.sgt()); + #endif #endif SERIAL_EOL(); #endif diff --git a/Marlin/example_configurations/AlephObjects/TAZ4/Configuration_adv.h b/Marlin/example_configurations/AlephObjects/TAZ4/Configuration_adv.h index bc8f339f7b..155d443929 100644 --- a/Marlin/example_configurations/AlephObjects/TAZ4/Configuration_adv.h +++ b/Marlin/example_configurations/AlephObjects/TAZ4/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/Anet/A6/Configuration_adv.h b/Marlin/example_configurations/Anet/A6/Configuration_adv.h index a7c4025516..253e96b81e 100644 --- a/Marlin/example_configurations/Anet/A6/Configuration_adv.h +++ b/Marlin/example_configurations/Anet/A6/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/Anet/A8/Configuration_adv.h b/Marlin/example_configurations/Anet/A8/Configuration_adv.h index 60ded7307a..8ea7ec8d24 100644 --- a/Marlin/example_configurations/Anet/A8/Configuration_adv.h +++ b/Marlin/example_configurations/Anet/A8/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/BIBO/TouchX/Configuration_adv.h b/Marlin/example_configurations/BIBO/TouchX/Configuration_adv.h index 08eb2afbcf..31256a6ae3 100644 --- a/Marlin/example_configurations/BIBO/TouchX/Configuration_adv.h +++ b/Marlin/example_configurations/BIBO/TouchX/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/BQ/Hephestos/Configuration_adv.h b/Marlin/example_configurations/BQ/Hephestos/Configuration_adv.h index 3e9f032b30..d3325f9ff2 100644 --- a/Marlin/example_configurations/BQ/Hephestos/Configuration_adv.h +++ b/Marlin/example_configurations/BQ/Hephestos/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/BQ/Hephestos_2/Configuration_adv.h b/Marlin/example_configurations/BQ/Hephestos_2/Configuration_adv.h index a580cb1543..405e44ed44 100644 --- a/Marlin/example_configurations/BQ/Hephestos_2/Configuration_adv.h +++ b/Marlin/example_configurations/BQ/Hephestos_2/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/BQ/WITBOX/Configuration_adv.h b/Marlin/example_configurations/BQ/WITBOX/Configuration_adv.h index 3e9f032b30..d3325f9ff2 100644 --- a/Marlin/example_configurations/BQ/WITBOX/Configuration_adv.h +++ b/Marlin/example_configurations/BQ/WITBOX/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/Cartesio/Configuration_adv.h b/Marlin/example_configurations/Cartesio/Configuration_adv.h index 5bfd7fd18f..6eb532c55c 100644 --- a/Marlin/example_configurations/Cartesio/Configuration_adv.h +++ b/Marlin/example_configurations/Cartesio/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/Creality/CR-10/Configuration_adv.h b/Marlin/example_configurations/Creality/CR-10/Configuration_adv.h index 833e9ffb54..1c4bc62cca 100755 --- a/Marlin/example_configurations/Creality/CR-10/Configuration_adv.h +++ b/Marlin/example_configurations/Creality/CR-10/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/Creality/CR-10S/Configuration_adv.h b/Marlin/example_configurations/Creality/CR-10S/Configuration_adv.h index ab0c49f56f..e0efe75794 100644 --- a/Marlin/example_configurations/Creality/CR-10S/Configuration_adv.h +++ b/Marlin/example_configurations/Creality/CR-10S/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/Creality/Ender/Configuration_adv.h b/Marlin/example_configurations/Creality/Ender/Configuration_adv.h index d58c572378..33d974a2e7 100644 --- a/Marlin/example_configurations/Creality/Ender/Configuration_adv.h +++ b/Marlin/example_configurations/Creality/Ender/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/Felix/Configuration_adv.h b/Marlin/example_configurations/Felix/Configuration_adv.h index ee2c3d5b4f..70e8a06760 100644 --- a/Marlin/example_configurations/Felix/Configuration_adv.h +++ b/Marlin/example_configurations/Felix/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/FolgerTech/i3-2020/Configuration_adv.h b/Marlin/example_configurations/FolgerTech/i3-2020/Configuration_adv.h index 9cf7ec8aad..67111acaac 100644 --- a/Marlin/example_configurations/FolgerTech/i3-2020/Configuration_adv.h +++ b/Marlin/example_configurations/FolgerTech/i3-2020/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/Infitary/i3-M508/Configuration_adv.h b/Marlin/example_configurations/Infitary/i3-M508/Configuration_adv.h index 6570cbd723..56da71aef1 100644 --- a/Marlin/example_configurations/Infitary/i3-M508/Configuration_adv.h +++ b/Marlin/example_configurations/Infitary/i3-M508/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/JGAurora/A5/Configuration_adv.h b/Marlin/example_configurations/JGAurora/A5/Configuration_adv.h index 61dd88ac8c..5e9a1c93c1 100644 --- a/Marlin/example_configurations/JGAurora/A5/Configuration_adv.h +++ b/Marlin/example_configurations/JGAurora/A5/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/Malyan/M150/Configuration_adv.h b/Marlin/example_configurations/Malyan/M150/Configuration_adv.h index ae81074553..262be2e6cd 100644 --- a/Marlin/example_configurations/Malyan/M150/Configuration_adv.h +++ b/Marlin/example_configurations/Malyan/M150/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/Micromake/C1/enhanced/Configuration_adv.h b/Marlin/example_configurations/Micromake/C1/enhanced/Configuration_adv.h index 326543977a..5bae779775 100644 --- a/Marlin/example_configurations/Micromake/C1/enhanced/Configuration_adv.h +++ b/Marlin/example_configurations/Micromake/C1/enhanced/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/RigidBot/Configuration_adv.h b/Marlin/example_configurations/RigidBot/Configuration_adv.h index 616056bedd..1d7451a979 100644 --- a/Marlin/example_configurations/RigidBot/Configuration_adv.h +++ b/Marlin/example_configurations/RigidBot/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/SCARA/Configuration_adv.h b/Marlin/example_configurations/SCARA/Configuration_adv.h index 4fc12268a2..0302f00c39 100644 --- a/Marlin/example_configurations/SCARA/Configuration_adv.h +++ b/Marlin/example_configurations/SCARA/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/Sanguinololu/Configuration_adv.h b/Marlin/example_configurations/Sanguinololu/Configuration_adv.h index f2ec0717ab..1b11b0fded 100644 --- a/Marlin/example_configurations/Sanguinololu/Configuration_adv.h +++ b/Marlin/example_configurations/Sanguinololu/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/TinyBoy2/Configuration_adv.h b/Marlin/example_configurations/TinyBoy2/Configuration_adv.h index ae3b502cb2..af4924bfdc 100644 --- a/Marlin/example_configurations/TinyBoy2/Configuration_adv.h +++ b/Marlin/example_configurations/TinyBoy2/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/Velleman/K8200/Configuration_adv.h b/Marlin/example_configurations/Velleman/K8200/Configuration_adv.h index 9c0c6199dc..e8981689f8 100644 --- a/Marlin/example_configurations/Velleman/K8200/Configuration_adv.h +++ b/Marlin/example_configurations/Velleman/K8200/Configuration_adv.h @@ -1157,20 +1157,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/Velleman/K8400/Configuration_adv.h b/Marlin/example_configurations/Velleman/K8400/Configuration_adv.h index 18e733ec85..c2e76c3d43 100644 --- a/Marlin/example_configurations/Velleman/K8400/Configuration_adv.h +++ b/Marlin/example_configurations/Velleman/K8400/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/Wanhao/Duplicator 6/Configuration_adv.h b/Marlin/example_configurations/Wanhao/Duplicator 6/Configuration_adv.h index 2b748ef70d..85794dc184 100644 --- a/Marlin/example_configurations/Wanhao/Duplicator 6/Configuration_adv.h +++ b/Marlin/example_configurations/Wanhao/Duplicator 6/Configuration_adv.h @@ -1146,20 +1146,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h b/Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h index f92387f186..96f86fa4e0 100644 --- a/Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h +++ b/Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h @@ -1146,20 +1146,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/delta/FLSUN/kossel/Configuration_adv.h b/Marlin/example_configurations/delta/FLSUN/kossel/Configuration_adv.h index 5c7549e05b..99d15e4843 100644 --- a/Marlin/example_configurations/delta/FLSUN/kossel/Configuration_adv.h +++ b/Marlin/example_configurations/delta/FLSUN/kossel/Configuration_adv.h @@ -1146,20 +1146,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h b/Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h index e5ce4d2558..c2030fc87b 100644 --- a/Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h +++ b/Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h @@ -1146,20 +1146,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/delta/generic/Configuration_adv.h b/Marlin/example_configurations/delta/generic/Configuration_adv.h index e5ce4d2558..c2030fc87b 100644 --- a/Marlin/example_configurations/delta/generic/Configuration_adv.h +++ b/Marlin/example_configurations/delta/generic/Configuration_adv.h @@ -1146,20 +1146,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h b/Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h index e5ce4d2558..c2030fc87b 100644 --- a/Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h +++ b/Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h @@ -1146,20 +1146,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h b/Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h index cee2f72f91..45e595c2d3 100644 --- a/Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h +++ b/Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h @@ -1151,20 +1151,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h b/Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h index a1a8cc833d..5c2e10a659 100644 --- a/Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h +++ b/Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h @@ -1146,20 +1146,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/gCreate/gMax1.5+/Configuration_adv.h b/Marlin/example_configurations/gCreate/gMax1.5+/Configuration_adv.h index 283c1d5173..5a74a72a8f 100644 --- a/Marlin/example_configurations/gCreate/gMax1.5+/Configuration_adv.h +++ b/Marlin/example_configurations/gCreate/gMax1.5+/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/makibox/Configuration_adv.h b/Marlin/example_configurations/makibox/Configuration_adv.h index 059a8f2b59..513b9a812d 100644 --- a/Marlin/example_configurations/makibox/Configuration_adv.h +++ b/Marlin/example_configurations/makibox/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h b/Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h index fad8009085..912feb0e8a 100644 --- a/Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h +++ b/Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h @@ -1144,20 +1144,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/example_configurations/wt150/Configuration_adv.h b/Marlin/example_configurations/wt150/Configuration_adv.h index 8491f2045a..dffad10912 100644 --- a/Marlin/example_configurations/wt150/Configuration_adv.h +++ b/Marlin/example_configurations/wt150/Configuration_adv.h @@ -1145,20 +1145,21 @@ /** * Use stallGuard2 to sense an obstacle and trigger an endstop. * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin. - * X and Y homing will always be done in spreadCycle mode. + * X, Y, and Z homing will always be done in spreadCycle mode. * - * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. + * X/Y/Z_HOMING_SENSITIVITY is used for tuning the trigger sensitivity. * Higher values make the system LESS sensitive. * Lower value make the system MORE sensitive. * Too low values can lead to false positives, while too high values will collide the axis without triggering. - * It is advised to set X/Y_HOME_BUMP_MM to 0. - * M914 X/Y to live tune the setting + * It is advised to set X/Y_Z_HOME_BUMP_MM to 0. + * M914 X/Y/Z to live tune the setting */ //#define SENSORLESS_HOMING // TMC2130 only #if ENABLED(SENSORLESS_HOMING) #define X_HOMING_SENSITIVITY 8 #define Y_HOMING_SENSITIVITY 8 + #define Z_HOMING_SENSITIVITY 8 #endif /** diff --git a/Marlin/tmc_util.cpp b/Marlin/tmc_util.cpp index 3cd9091c4b..db7af56540 100644 --- a/Marlin/tmc_util.cpp +++ b/Marlin/tmc_util.cpp @@ -236,7 +236,7 @@ void _tmc_say_pwmthrs(const char name[], const uint32_t thrs) { void _tmc_say_sgt(const char name[], const uint32_t sgt) { SERIAL_ECHO(name); SERIAL_ECHOPGM(" driver homing sensitivity set to "); - MYSERIAL.println(sgt, DEC); + SERIAL_PRINTLN(sgt, DEC); } #if ENABLED(TMC_DEBUG) @@ -325,7 +325,7 @@ void _tmc_say_sgt(const char name[], const uint32_t sgt) { case TMC_TSTEP: { uint32_t data = 0; st.TSTEP(&data); - MYSERIAL.print(data); + SERIAL_PROTOCOL(data); break; } case TMC_PWM_SCALE: SERIAL_PRINT(st.pwm_scale_sum(), DEC); break; @@ -353,7 +353,7 @@ void _tmc_say_sgt(const char name[], const uint32_t sgt) { case TMC_CODES: SERIAL_ECHO(extended_axis_codes[axis]); break; case TMC_ENABLED: serialprintPGM(st.isEnabled() ? PSTR("true") : PSTR("false")); break; case TMC_CURRENT: SERIAL_ECHO(st.getCurrent()); break; - case TMC_RMS_CURRENT: MYSERIAL.print(st.rms_current()); break; + case TMC_RMS_CURRENT: SERIAL_PROTOCOL(st.rms_current()); break; case TMC_MAX_CURRENT: SERIAL_PRINT((float)st.rms_current() * 1.41, 0); break; case TMC_IRUN: SERIAL_PRINT(st.irun(), DEC);