🍻 Fix Z increase on toolchange without UBL (#22942)

This commit is contained in:
Vasily Evseenko 2022-11-27 04:26:40 +03:00 committed by Scott Lahteine
parent c1684a1dbe
commit b2b8407a75
2 changed files with 3 additions and 2 deletions

View File

@ -57,6 +57,7 @@ bool leveling_is_valid() {
* Enable: Current position = "unleveled" physical position
*/
void set_bed_leveling_enabled(const bool enable/*=true*/) {
DEBUG_SECTION(log_sble, "set_bed_leveling_enabled", DEBUGGING(LEVELING));
const bool can_change = TERN1(AUTO_BED_LEVELING_BILINEAR, !enable || leveling_is_valid());

View File

@ -1157,8 +1157,8 @@ void tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
const uint8_t old_tool = active_extruder;
const bool can_move_away = !no_move && !idex_full_control;
#if HAS_LEVELING
// Set current position to the physical position
#if ENABLED(AUTO_BED_LEVELING_UBL)
// Workaround for UBL mesh boundary, possibly?
TEMPORARY_BED_LEVELING_STATE(false);
#endif