Scott Lahteine hace 4 años
padre
commit
6f4589b375
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      Marlin/src/gcode/calibrate/G28.cpp

+ 2
- 2
Marlin/src/gcode/calibrate/G28.cpp Ver fichero

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

Loading…
Cancelar
Guardar