Fix G34 compile with bed leveling disabled (#20537)

This commit is contained in:
cr20-123 2020-12-21 18:43:45 -05:00 committed by Scott Lahteine
parent 28548e7ea2
commit bc3f2f246f

View File

@ -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