Skip to content

Commit

Permalink
G28 followup
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead authored and RFBomb committed Dec 23, 2020
1 parent e01e87a commit bf749e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/gcode/calibrate/G28.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,8 @@ void GcodeSuite::G28() {
do_blocking_move_to_z(delta_clip_start_height);
#endif

TERN_(RESTORE_LEVELING_AFTER_G28, set_bed_leveling_enabled(leveling_was_active));

restore_feedrate_and_scaling();

// Restore the active tool after homing
Expand All @@ -458,8 +460,6 @@ void GcodeSuite::G28() {
#endif
#endif

TERN_(HAS_LEVELING, set_bed_leveling_enabled(leveling_restore_state));

ui.refresh();

TERN_(DWIN_CREALITY_LCD, DWIN_CompletedHoming());
Expand Down

0 comments on commit bf749e9

Please sign in to comment.