This commit is contained in:
Scott Lahteine 2017-11-27 12:57:55 -06:00
parent 47099af3ec
commit 0786b61ce7

View File

@ -137,14 +137,20 @@ void GcodeSuite::G29() {
BUZZ(100, 659); BUZZ(100, 659);
BUZZ(100, 698); BUZZ(100, 698);
mbl.has_mesh = true; mbl.has_mesh = true;
gcode.home_all_axes(); gcode.home_all_axes();
set_bed_leveling_enabled(true); set_bed_leveling_enabled(true);
#if ENABLED(MESH_G28_REST_ORIGIN) #if ENABLED(MESH_G28_REST_ORIGIN)
current_position[Z_AXIS] = Z_MIN_POS; current_position[Z_AXIS] = Z_MIN_POS;
set_destination_from_current(); set_destination_from_current();
buffer_line_to_destination(homing_feedrate(Z_AXIS)); buffer_line_to_destination(homing_feedrate(Z_AXIS));
stepper.synchronize(); stepper.synchronize();
#endif #endif
#if ENABLED(LCD_BED_LEVELING)
lcd_wait_for_move = false;
#endif
} }
break; break;