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
   // Home before the alignment procedure
41
   // Home before the alignment procedure
42
   if (!all_axes_trusted()) home_all_axes();
42
   if (!all_axes_trusted()) home_all_axes();
43
 
43
 
44
+  TERN_(HAS_LEVELING, TEMPORARY_BED_LEVELING_STATE(false));
45
+  
44
   SET_SOFT_ENDSTOP_LOOSE(true);
46
   SET_SOFT_ENDSTOP_LOOSE(true);
45
-  TEMPORARY_BED_LEVELING_STATE(false);
46
   TemporaryGlobalEndstopsState unlock_z(false);
47
   TemporaryGlobalEndstopsState unlock_z(false);
47
 
48
 
48
   #ifdef GANTRY_CALIBRATION_COMMANDS_PRE
49
   #ifdef GANTRY_CALIBRATION_COMMANDS_PRE

Loading…
Cancel
Save