Browse Source

set_axis_not_trusted => set_axis_never_homed

vanilla_fb_2.0.x
Scott Lahteine 4 years ago
parent
commit
d10f7eae31
  1. 2
      Marlin/src/gcode/bedlevel/G35.cpp
  2. 2
      Marlin/src/gcode/calibrate/G34_M422.cpp
  3. 8
      Marlin/src/module/motion.cpp
  4. 2
      Marlin/src/module/motion.h

2
Marlin/src/gcode/bedlevel/G35.cpp

@ -176,7 +176,7 @@ void GcodeSuite::G35() {
probe.stow(); probe.stow();
// After this operation the Z position needs correction // After this operation the Z position needs correction
set_axis_not_trusted(Z_AXIS); set_axis_never_homed(Z_AXIS);
// Home Z after the alignment procedure // Home Z after the alignment procedure
process_subcommands_now_P(PSTR("G28Z")); process_subcommands_now_P(PSTR("G28Z"));

2
Marlin/src/gcode/calibrate/G34_M422.cpp

@ -346,7 +346,7 @@ void GcodeSuite::G34() {
#if ENABLED(HOME_AFTER_G34) #if ENABLED(HOME_AFTER_G34)
// After this operation the z position needs correction // After this operation the z position needs correction
set_axis_not_trusted(Z_AXIS); set_axis_never_homed(Z_AXIS);
// Home Z after the alignment procedure // Home Z after the alignment procedure
process_subcommands_now_P(PSTR("G28Z")); process_subcommands_now_P(PSTR("G28Z"));
#else #else

8
Marlin/src/module/motion.cpp

@ -1431,15 +1431,15 @@ void set_axis_is_at_home(const AxisEnum axis) {
} }
/** /**
* Set an axis' to be unhomed. * Set an axis to be unhomed.
*/ */
void set_axis_not_trusted(const AxisEnum axis) { void set_axis_never_homed(const AxisEnum axis) {
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPAIR(">>> set_axis_not_trusted(", axis_codes[axis], ")"); if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPAIR(">>> set_axis_never_homed(", axis_codes[axis], ")");
CBI(axis_known_position, axis); CBI(axis_known_position, axis);
CBI(axis_homed, axis); CBI(axis_homed, axis);
if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPAIR("<<< set_axis_not_trusted(", axis_codes[axis], ")"); if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPAIR("<<< set_axis_never_homed(", axis_codes[axis], ")");
TERN_(I2C_POSITION_ENCODERS, I2CPEM.unhomed(axis)); TERN_(I2C_POSITION_ENCODERS, I2CPEM.unhomed(axis));
} }

2
Marlin/src/module/motion.h

@ -251,7 +251,7 @@ bool axis_unhomed_error(uint8_t axis_bits=0x07);
void set_axis_is_at_home(const AxisEnum axis); void set_axis_is_at_home(const AxisEnum axis);
void set_axis_not_trusted(const AxisEnum axis); void set_axis_never_homed(const AxisEnum axis);
void homeaxis(const AxisEnum axis); void homeaxis(const AxisEnum axis);

Loading…
Cancel
Save