Browse Source

Fix G34 compile with bed leveling disabled (#20537)

cr20-123 4 years ago
parent
commit
0d95f67f2e
No account linked to committer's email address
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      Marlin/src/gcode/calibrate/G34.cpp

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

@@ -41,8 +41,9 @@ void GcodeSuite::G34() {
41 41
   // Home before the alignment procedure
42 42
   if (!all_axes_trusted()) home_all_axes();
43 43
 
44
+  TERN_(HAS_LEVELING, TEMPORARY_BED_LEVELING_STATE(false));
45
+  
44 46
   SET_SOFT_ENDSTOP_LOOSE(true);
45
-  TEMPORARY_BED_LEVELING_STATE(false);
46 47
   TemporaryGlobalEndstopsState unlock_z(false);
47 48
 
48 49
   #ifdef GANTRY_CALIBRATION_COMMANDS_PRE

Loading…
Cancel
Save