Skip to content

Commit

Permalink
Fix G34 compile with bed leveling disabled (#20537)
Browse files Browse the repository at this point in the history
  • Loading branch information
cr20-123 authored Dec 21, 2020
1 parent 3ec59b3 commit 0d95f67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Marlin/src/gcode/calibrate/G34.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ void GcodeSuite::G34() {
// Home before the alignment procedure
if (!all_axes_trusted()) home_all_axes();

TERN_(HAS_LEVELING, TEMPORARY_BED_LEVELING_STATE(false));

SET_SOFT_ENDSTOP_LOOSE(true);
TEMPORARY_BED_LEVELING_STATE(false);
TemporaryGlobalEndstopsState unlock_z(false);

#ifdef GANTRY_CALIBRATION_COMMANDS_PRE
Expand Down

0 comments on commit 0d95f67

Please sign in to comment.