Skip to content

Commit

Permalink
Check if position is unknown and home axis
Browse files Browse the repository at this point in the history
  • Loading branch information
MistrKernnunos committed Nov 24, 2022
1 parent 302f4b9 commit eae9915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/MItem_tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ void MI_MESH_BED::click(IWindowMenu & /*window_menu*/) {
Response response = Response::No;
do {
//home if we repeat MBL, nozzle may be in different position than expected
if (!marlin_all_axes_homed() || response == Response::Yes) {
if (!marlin_all_axes_homed() || !marlin_all_axes_known() || response == Response::Yes) {
marlin_event_clr(MARLIN_EVT_CommandBegin);
marlin_gcode("G28");
while (!marlin_event_clr(MARLIN_EVT_CommandBegin))
Expand Down

0 comments on commit eae9915

Please sign in to comment.