Merge pull request #3541 from thinkyhead/rc_mbl_one_last_lift

Add a final lift, if configured, in Manual Bed Leveling
This commit is contained in:
Scott Lahteine 2016-04-17 17:20:02 -07:00
commit 5905ec5ba8
2 changed files with 10 additions and 2 deletions

View File

@ -2951,7 +2951,11 @@ inline void gcode_G28() {
} }
else { else {
// One last "return to the bed" (as originally coded) at completion // One last "return to the bed" (as originally coded) at completion
current_position[Z_AXIS] = MESH_HOME_SEARCH_Z; current_position[Z_AXIS] = MESH_HOME_SEARCH_Z
#if MIN_Z_HEIGHT_FOR_HOMING > 0
+ MIN_Z_HEIGHT_FOR_HOMING
#endif
;
line_to_current_position(); line_to_current_position();
st_synchronize(); st_synchronize();

View File

@ -960,7 +960,11 @@ void lcd_cooldown() {
buzz(200, 659); buzz(200, 659);
buzz(200, 698); buzz(200, 698);
#endif #endif
current_position[Z_AXIS] = MESH_HOME_SEARCH_Z; current_position[Z_AXIS] = MESH_HOME_SEARCH_Z
#if MIN_Z_HEIGHT_FOR_HOMING > 0
+ MIN_Z_HEIGHT_FOR_HOMING
#endif
;
line_to_current(Z_AXIS); line_to_current(Z_AXIS);
st_synchronize(); st_synchronize();
mbl.active = true; mbl.active = true;