Skip to content

Commit

Permalink
🍻 Fix Z increase on toolchange without UBL (#22942)
Browse files Browse the repository at this point in the history
  • Loading branch information
svpcom authored Nov 27, 2022
1 parent a13f3cb commit 909442c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Marlin/src/feature/bedlevel/bedlevel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/module/tool_change.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 909442c

Please sign in to comment.