|
|
@ -1706,10 +1706,6 @@ inline void do_blocking_move_to_z(float z, float feed_rate = 0.0) {
|
|
|
|
do_blocking_move_to(current_position[X_AXIS], current_position[Y_AXIS], z, feed_rate);
|
|
|
|
do_blocking_move_to(current_position[X_AXIS], current_position[Y_AXIS], z, feed_rate);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
inline void do_blocking_move_to_xy(float x, float y, float feed_rate = 0.0) {
|
|
|
|
|
|
|
|
do_blocking_move_to(x, y, current_position[Z_AXIS], feed_rate);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Prepare to do endstop or probe moves
|
|
|
|
// Prepare to do endstop or probe moves
|
|
|
|
// with custom feedrates.
|
|
|
|
// with custom feedrates.
|
|
|
@ -1760,31 +1756,33 @@ static void clean_up_after_endstop_or_probe_move() {
|
|
|
|
|
|
|
|
|
|
|
|
#endif //HAS_BED_PROBE
|
|
|
|
#endif //HAS_BED_PROBE
|
|
|
|
|
|
|
|
|
|
|
|
static bool axis_unhomed_error(const bool x, const bool y, const bool z) {
|
|
|
|
#if ENABLED(Z_PROBE_ALLEN_KEY) || ENABLED(Z_PROBE_SLED) || ENABLED(Z_SAFE_HOMING) || HAS_PROBING_PROCEDURE || HOTENDS > 1 || ENABLED(NOZZLE_CLEAN_FEATURE) || ENABLED(NOZZLE_PARK_FEATURE)
|
|
|
|
const bool xx = x && !axis_homed[X_AXIS],
|
|
|
|
static bool axis_unhomed_error(const bool x, const bool y, const bool z) {
|
|
|
|
yy = y && !axis_homed[Y_AXIS],
|
|
|
|
const bool xx = x && !axis_homed[X_AXIS],
|
|
|
|
zz = z && !axis_homed[Z_AXIS];
|
|
|
|
yy = y && !axis_homed[Y_AXIS],
|
|
|
|
if (xx || yy || zz) {
|
|
|
|
zz = z && !axis_homed[Z_AXIS];
|
|
|
|
SERIAL_ECHO_START;
|
|
|
|
if (xx || yy || zz) {
|
|
|
|
SERIAL_ECHOPGM(MSG_HOME " ");
|
|
|
|
SERIAL_ECHO_START;
|
|
|
|
if (xx) SERIAL_ECHOPGM(MSG_X);
|
|
|
|
SERIAL_ECHOPGM(MSG_HOME " ");
|
|
|
|
if (yy) SERIAL_ECHOPGM(MSG_Y);
|
|
|
|
if (xx) SERIAL_ECHOPGM(MSG_X);
|
|
|
|
if (zz) SERIAL_ECHOPGM(MSG_Z);
|
|
|
|
if (yy) SERIAL_ECHOPGM(MSG_Y);
|
|
|
|
SERIAL_ECHOLNPGM(" " MSG_FIRST);
|
|
|
|
if (zz) SERIAL_ECHOPGM(MSG_Z);
|
|
|
|
|
|
|
|
SERIAL_ECHOLNPGM(" " MSG_FIRST);
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(ULTRA_LCD)
|
|
|
|
#if ENABLED(ULTRA_LCD)
|
|
|
|
char message[3 * (LCD_WIDTH) + 1] = ""; // worst case is kana.utf with up to 3*LCD_WIDTH+1
|
|
|
|
char message[3 * (LCD_WIDTH) + 1] = ""; // worst case is kana.utf with up to 3*LCD_WIDTH+1
|
|
|
|
strcat_P(message, PSTR(MSG_HOME " "));
|
|
|
|
strcat_P(message, PSTR(MSG_HOME " "));
|
|
|
|
if (xx) strcat_P(message, PSTR(MSG_X));
|
|
|
|
if (xx) strcat_P(message, PSTR(MSG_X));
|
|
|
|
if (yy) strcat_P(message, PSTR(MSG_Y));
|
|
|
|
if (yy) strcat_P(message, PSTR(MSG_Y));
|
|
|
|
if (zz) strcat_P(message, PSTR(MSG_Z));
|
|
|
|
if (zz) strcat_P(message, PSTR(MSG_Z));
|
|
|
|
strcat_P(message, PSTR(" " MSG_FIRST));
|
|
|
|
strcat_P(message, PSTR(" " MSG_FIRST));
|
|
|
|
lcd_setstatus(message);
|
|
|
|
lcd_setstatus(message);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(Z_PROBE_SLED)
|
|
|
|
#if ENABLED(Z_PROBE_SLED)
|
|
|
|
|
|
|
|
|
|
|
|