Skip to content

Commit

Permalink
G28 followup
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead authored and chrisjenda committed Apr 8, 2021
1 parent 98ddab3 commit 53fd47f
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 @@ -444,6 +444,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 @@ -467,8 +469,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 53fd47f

Please sign in to comment.