Skip to content

Commit

Permalink
etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Sep 14, 2020
1 parent 9637dbf commit 034c926
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Marlin/src/lcd/dwin/e3v2/dwin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1136,10 +1136,9 @@ void HMI_Zoffset(void) {
zprobe_zoffset = HMI_ValueStruct.offset_value / 100;
if (WITHIN(zprobe_zoffset - last_zoffset, Z_PROBE_OFFSET_RANGE_MIN, Z_PROBE_OFFSET_RANGE_MAX))
probe.offset.z = zprobe_zoffset;
#if ENABLED(BABYSTEPPING)
babystep.add_mm(Z_AXIS, (zprobe_zoffset - last_zoffset));
#endif
settings.save();
#elif ENABLED(BABYSTEP_DISPLAY_TOTAL)
babystep.add_mm(Z_AXIS, zprobe_zoffset - last_zoffset);
#endif

if (HMI_ValueStruct.show_mode == -4) {
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/lcd/extui/ui_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,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 - getZOffset_mm()));
babystep.add_mm(Z_AXIS, value - getZOffset_mm());
#else
UNUSED(value);
#endif
Expand Down

0 comments on commit 034c926

Please sign in to comment.