Apply unknown_position_error elsewhere

This commit is contained in:
Scott Lahteine 2016-03-02 19:55:16 -08:00
parent eda5190581
commit cf7c444aff

View File

@ -1834,9 +1834,7 @@ static void unknown_position_error() {
} }
#endif #endif
if (!axis_known_position[X_AXIS] || !axis_known_position[Y_AXIS]) { if (!axis_known_position[X_AXIS] || !axis_known_position[Y_AXIS]) {
LCD_MESSAGEPGM(MSG_POSITION_UNKNOWN); unknown_position_error();
SERIAL_ECHO_START;
SERIAL_ECHOLNPGM(MSG_POSITION_UNKNOWN);
return; return;
} }
@ -2586,9 +2584,7 @@ inline void gcode_G28() {
} }
} }
else { else {
LCD_MESSAGEPGM(MSG_POSITION_UNKNOWN); unknown_position_error();
SERIAL_ECHO_START;
SERIAL_ECHOLNPGM(MSG_POSITION_UNKNOWN);
} }
} // !home_all_axes && homeZ } // !home_all_axes && homeZ
@ -2859,9 +2855,7 @@ inline void gcode_G28() {
// Don't allow auto-leveling without homing first // Don't allow auto-leveling without homing first
if (!axis_known_position[X_AXIS] || !axis_known_position[Y_AXIS]) { if (!axis_known_position[X_AXIS] || !axis_known_position[Y_AXIS]) {
LCD_MESSAGEPGM(MSG_POSITION_UNKNOWN); unknown_position_error();
SERIAL_ECHO_START;
SERIAL_ECHOLNPGM(MSG_POSITION_UNKNOWN);
return; return;
} }