Skip to content

Commit

Permalink
Tweak ExtUI Probeless Babystepping (MarlinFirmware#16177)
Browse files Browse the repository at this point in the history
  • Loading branch information
InsanityAutomation authored and philippniethammer committed Dec 21, 2019
1 parent 959a3c9 commit 1318c37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/lcd/extensible_ui/ui_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ namespace ExtUI {
#if HAS_BED_PROBE
return probe_offset.z;
#elif ENABLED(BABYSTEP_DISPLAY_TOTAL)
return babystep.axis_total[BS_TOTAL_AXIS(Z_AXIS) + 1];
return (planner.steps_to_mm[Z_AXIS] * babystep.axis_total[BS_TODO_AXIS(Z_AXIS)]);
#else
return 0.0;
#endif
Expand All @@ -784,7 +784,7 @@ namespace ExtUI {
if (WITHIN(value, Z_PROBE_OFFSET_RANGE_MIN, Z_PROBE_OFFSET_RANGE_MAX))
probe_offset.z = value;
#elif ENABLED(BABYSTEP_DISPLAY_TOTAL)
babystep.add_mm(Z_AXIS, (value - babystep.axis_total[BS_TOTAL_AXIS(Z_AXIS) + 1]));
babystep.add_mm(Z_AXIS, (value - getZOffset_mm()));
#else
UNUSED(value);
#endif
Expand Down

0 comments on commit 1318c37

Please sign in to comment.