Browse Source

G28 followup

Scott Lahteine 4 years ago
parent
commit
6f4589b375
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/gcode/calibrate/G28.cpp

+ 2
- 2
Marlin/src/gcode/calibrate/G28.cpp View File

435
     do_blocking_move_to_z(delta_clip_start_height);
435
     do_blocking_move_to_z(delta_clip_start_height);
436
   #endif
436
   #endif
437
 
437
 
438
+  TERN_(RESTORE_LEVELING_AFTER_G28, set_bed_leveling_enabled(leveling_was_active));
439
+
438
   restore_feedrate_and_scaling();
440
   restore_feedrate_and_scaling();
439
 
441
 
440
   // Restore the active tool after homing
442
   // Restore the active tool after homing
458
     #endif
460
     #endif
459
   #endif
461
   #endif
460
 
462
 
461
-  TERN_(HAS_LEVELING, set_bed_leveling_enabled(leveling_restore_state));
462
-
463
   ui.refresh();
463
   ui.refresh();
464
 
464
 
465
   TERN_(DWIN_CREALITY_LCD, DWIN_CompletedHoming());
465
   TERN_(DWIN_CREALITY_LCD, DWIN_CompletedHoming());

Loading…
Cancel
Save