Browse Source

Merge pull request #9676 from smoki3/bugfix-2.0.x

[2.0.x] Option to force homing of a dependent axis
pull/1/head
Scott Lahteine 7 years ago
committed by GitHub
parent
commit
6589f654b0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      .travis.yml
  2. 3
      Marlin/Configuration_adv.h
  3. 3
      Marlin/src/config/default/Configuration_adv.h
  4. 3
      Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h
  5. 3
      Marlin/src/config/examples/Anet/A6/Configuration_adv.h
  6. 3
      Marlin/src/config/examples/Anet/A8/Configuration_adv.h
  7. 3
      Marlin/src/config/examples/Azteeg/X5GT/Configuration_adv.h
  8. 3
      Marlin/src/config/examples/BIBO/TouchX/Configuration_adv.h
  9. 3
      Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h
  10. 3
      Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h
  11. 3
      Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h
  12. 3
      Marlin/src/config/examples/Cartesio/Configuration_adv.h
  13. 3
      Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h
  14. 3
      Marlin/src/config/examples/Creality/CR-10S/Configuration_adv.h
  15. 3
      Marlin/src/config/examples/Creality/Ender/Configuration_adv.h
  16. 3
      Marlin/src/config/examples/Felix/Configuration_adv.h
  17. 3
      Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h
  18. 3
      Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h
  19. 3
      Marlin/src/config/examples/JGAurora/A5/Configuration_adv.h
  20. 3
      Marlin/src/config/examples/MakerParts/Configuration_adv.h
  21. 3
      Marlin/src/config/examples/Malyan/M150/Configuration_adv.h
  22. 3
      Marlin/src/config/examples/Malyan/M200/Configuration_adv.h
  23. 3
      Marlin/src/config/examples/Micromake/C1/enhanced/Configuration_adv.h
  24. 3
      Marlin/src/config/examples/Mks/Sbase/Configuration_adv.h
  25. 3
      Marlin/src/config/examples/RigidBot/Configuration_adv.h
  26. 3
      Marlin/src/config/examples/SCARA/Configuration_adv.h
  27. 3
      Marlin/src/config/examples/Sanguinololu/Configuration_adv.h
  28. 3
      Marlin/src/config/examples/TheBorg/Configuration_adv.h
  29. 3
      Marlin/src/config/examples/TinyBoy2/Configuration_adv.h
  30. 3
      Marlin/src/config/examples/UltiMachine/Archim2/Configuration_adv.h
  31. 3
      Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h
  32. 3
      Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h
  33. 3
      Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration_adv.h
  34. 3
      Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h
  35. 3
      Marlin/src/config/examples/delta/FLSUN/kossel/Configuration_adv.h
  36. 3
      Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h
  37. 3
      Marlin/src/config/examples/delta/generic/Configuration_adv.h
  38. 3
      Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h
  39. 3
      Marlin/src/config/examples/delta/kossel_pro/Configuration_adv.h
  40. 3
      Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h
  41. 3
      Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h
  42. 3
      Marlin/src/config/examples/makibox/Configuration_adv.h
  43. 3
      Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h
  44. 3
      Marlin/src/config/examples/wt150/Configuration_adv.h
  45. 40
      Marlin/src/gcode/calibrate/G28.cpp
  46. 10
      Marlin/src/inc/SanityCheck.h

8
.travis.yml

@ -67,7 +67,7 @@ script:
- opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER SDSUPPORT EEPROM_SETTINGS
- opt_enable BLINKM PCA9632 RGB_LED NEOPIXEL_LED AUTO_POWER_CONTROL
- opt_enable AUTO_BED_LEVELING_LINEAR Z_MIN_PROBE_REPEATABILITY_TEST DEBUG_LEVELING_FEATURE SKEW_CORRECTION SKEW_CORRECTION_FOR_Z SKEW_CORRECTION_GCODE
- opt_enable_adv FWRETRACT MAX7219_DEBUG LED_CONTROL_MENU CASE_LIGHT_ENABLE CASE_LIGHT_USE_NEOPIXEL
- opt_enable_adv FWRETRACT MAX7219_DEBUG LED_CONTROL_MENU CASE_LIGHT_ENABLE CASE_LIGHT_USE_NEOPIXEL CODEPENDENT_XY_HOMING
- opt_set ABL_GRID_POINTS_X 16
- opt_set ABL_GRID_POINTS_Y 16
- opt_set_adv FANMUX0_PIN 53
@ -84,13 +84,13 @@ script:
- opt_set TEMP_SENSOR_4 999
- opt_set TEMP_SENSOR_BED 1
- opt_enable AUTO_BED_LEVELING_UBL DEBUG_LEVELING_FEATURE G26_MESH_EDITING ENABLE_LEVELING_FADE_HEIGHT EEPROM_SETTINGS EEPROM_CHITCHAT G3D_PANEL SKEW_CORRECTION
- opt_enable_adv CUSTOM_USER_MENUS I2C_POSITION_ENCODERS BABYSTEPPING BABYSTEP_XY LIN_ADVANCE NANODLP_Z_SYNC
- opt_enable_adv CUSTOM_USER_MENUS I2C_POSITION_ENCODERS BABYSTEPPING BABYSTEP_XY LIN_ADVANCE NANODLP_Z_SYNC QUICK_HOME
- build_marlin_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
#
# Add a Sled Z Probe, do non-segmented moves, use Japanese language
# Add a Sled Z Probe, use UBL Cartesian moves, use Japanese language
#
- opt_set LANGUAGE kana_utf8
- opt_enable Z_PROBE_SLED
- opt_enable Z_PROBE_SLED SKEW_CORRECTION SKEW_CORRECTION_FOR_Z SKEW_CORRECTION_GCODE
- opt_disable SEGMENT_LEVELED_MOVES
- opt_enable_adv BABYSTEP_ZPROBE_OFFSET DOUBLECLICK_FOR_Z_BABYSTEPPING
- build_marlin_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}

3
Marlin/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/default/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/Anet/A6/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/Anet/A8/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/Azteeg/X5GT/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/BIBO/TouchX/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/Cartesio/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/Creality/CR-10S/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/Creality/Ender/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/Felix/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/JGAurora/A5/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/MakerParts/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/Malyan/M150/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/Malyan/M200/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/Micromake/C1/enhanced/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/Mks/Sbase/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/RigidBot/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/SCARA/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/Sanguinololu/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/TheBorg/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/TinyBoy2/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/UltiMachine/Archim2/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h

@ -375,6 +375,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/delta/FLSUN/kossel/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/delta/generic/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/delta/kossel_pro/Configuration_adv.h

@ -367,6 +367,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/makibox/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

3
Marlin/src/config/examples/wt150/Configuration_adv.h

@ -362,6 +362,9 @@
// When G28 is called, this option will make Y home before X
//#define HOME_Y_BEFORE_X
// Enable this if X or Y can't home without homing the other axis first.
//#define CODEPENDENT_XY_HOMING
// @section machine
#define AXIS_RELATIVE_MODES {false, false, false, false}

40
Marlin/src/gcode/calibrate/G28.cpp

@ -198,12 +198,7 @@ void GcodeSuite::G28(const bool always_home_all) {
#if Z_HOME_DIR > 0 // If homing away from BED do Z first
if (home_all || homeZ) {
HOMEAXIS(Z);
#if ENABLED(DEBUG_LEVELING_FEATURE)
if (DEBUGGING(LEVELING)) DEBUG_POS("> HOMEAXIS(Z)", current_position);
#endif
}
if (home_all || homeZ) HOMEAXIS(Z);
#endif
@ -227,20 +222,23 @@ void GcodeSuite::G28(const bool always_home_all) {
#endif
// Home Y (before X)
#if ENABLED(HOME_Y_BEFORE_X)
// Home Y
if (home_all || homeY) {
HOMEAXIS(Y);
#if ENABLED(DEBUG_LEVELING_FEATURE)
if (DEBUGGING(LEVELING)) DEBUG_POS("> homeY", current_position);
if (home_all || homeY
#if ENABLED(CODEPENDENT_XY_HOMING)
|| homeX
#endif
}
) HOMEAXIS(Y);
#endif
// Home X
if (home_all || homeX) {
if (home_all || homeX
#if ENABLED(CODEPENDENT_XY_HOMING) && DISABLED(HOME_Y_BEFORE_X)
|| homeY
#endif
) {
#if ENABLED(DUAL_X_CARRIAGE)
@ -265,20 +263,11 @@ void GcodeSuite::G28(const bool always_home_all) {
HOMEAXIS(X);
#endif
#if ENABLED(DEBUG_LEVELING_FEATURE)
if (DEBUGGING(LEVELING)) DEBUG_POS("> homeX", current_position);
#endif
}
// Home Y (after X)
#if DISABLED(HOME_Y_BEFORE_X)
// Home Y
if (home_all || homeY) {
HOMEAXIS(Y);
#if ENABLED(DEBUG_LEVELING_FEATURE)
if (DEBUGGING(LEVELING)) DEBUG_POS("> homeY", current_position);
#endif
}
if (home_all || homeY) HOMEAXIS(Y);
#endif
// Home Z last if homing towards the bed
@ -289,9 +278,6 @@ void GcodeSuite::G28(const bool always_home_all) {
#else
HOMEAXIS(Z);
#endif
#if ENABLED(DEBUG_LEVELING_FEATURE)
if (DEBUGGING(LEVELING)) DEBUG_POS("> (home_all || homeZ) > final", current_position);
#endif
} // home_all || homeZ
#endif // Z_HOME_DIR < 0

10
Marlin/src/inc/SanityCheck.h

@ -886,12 +886,20 @@ static_assert(1 >= 0
#endif
/**
* Homing Bump
* Homing
*/
#if X_HOME_BUMP_MM < 0 || Y_HOME_BUMP_MM < 0 || Z_HOME_BUMP_MM < 0
#error "[XYZ]_HOME_BUMP_MM must be greater than or equal to 0."
#endif
#if ENABLED(CODEPENDENT_XY_HOMING)
#if ENABLED(QUICK_HOME)
#error "QUICK_HOME is incompatible with CODEPENDENT_XY_HOMING."
#elif IS_KINEMATIC
#error "CODEPENDENT_XY_HOMING requires a Cartesian setup."
#endif
#endif
/**
* Make sure Z_SAFE_HOMING point is reachable
*/

Loading…
Cancel
Save