Always enable leveling after G28

This commit is contained in:
Scott Lahteine
2020-12-05 20:10:13 -06:00
committed by Scott Lahteine
parent e349a44c60
commit 80bde7b6b5
3 changed files with 10 additions and 4 deletions

View File

@ -241,7 +241,7 @@ void GcodeSuite::G28() {
// Disable the leveling matrix before homing
#if HAS_LEVELING
TERN_(RESTORE_LEVELING_AFTER_G28, const bool leveling_was_active = planner.leveling_active);
const bool leveling_restore_state = ENABLED(ENABLE_LEVELING_AFTER_G28) || TERN0(RESTORE_LEVELING_AFTER_G28, planner.leveling_active);
TERN_(PROBE_MANUALLY, g29_in_progress = false); // Cancel the active G29 session
set_bed_leveling_enabled(false);
#endif