Skip to content

Commit

Permalink
Fix G34 compile with bed leveling disabled (MarlinFirmware#20537)
Browse files Browse the repository at this point in the history
  • Loading branch information
cr20-123 authored and thinkyhead committed Apr 29, 2021
1 parent b2fb525 commit c3c7e61
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 c3c7e61

Please sign in to comment.