Apply unknown_position_error elsewhere
This commit is contained in:
parent
eda5190581
commit
cf7c444aff
@ -1834,9 +1834,7 @@ static void unknown_position_error() {
|
||||
}
|
||||
#endif
|
||||
if (!axis_known_position[X_AXIS] || !axis_known_position[Y_AXIS]) {
|
||||
LCD_MESSAGEPGM(MSG_POSITION_UNKNOWN);
|
||||
SERIAL_ECHO_START;
|
||||
SERIAL_ECHOLNPGM(MSG_POSITION_UNKNOWN);
|
||||
unknown_position_error();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -2586,9 +2584,7 @@ inline void gcode_G28() {
|
||||
}
|
||||
}
|
||||
else {
|
||||
LCD_MESSAGEPGM(MSG_POSITION_UNKNOWN);
|
||||
SERIAL_ECHO_START;
|
||||
SERIAL_ECHOLNPGM(MSG_POSITION_UNKNOWN);
|
||||
unknown_position_error();
|
||||
}
|
||||
|
||||
} // !home_all_axes && homeZ
|
||||
@ -2859,9 +2855,7 @@ inline void gcode_G28() {
|
||||
|
||||
// Don't allow auto-leveling without homing first
|
||||
if (!axis_known_position[X_AXIS] || !axis_known_position[Y_AXIS]) {
|
||||
LCD_MESSAGEPGM(MSG_POSITION_UNKNOWN);
|
||||
SERIAL_ECHO_START;
|
||||
SERIAL_ECHOLNPGM(MSG_POSITION_UNKNOWN);
|
||||
unknown_position_error();
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user