mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-07-25 15:44:02 -06:00
zprobe_offset => probe_offset
This commit is contained in:
parent
3819f79945
commit
4e8d9fe59b
20 changed files with 79 additions and 79 deletions
|
@ -402,7 +402,7 @@ void scroll_screen(const uint8_t limit, const bool is_menu) {
|
|||
ui.encoderPosition = 0;
|
||||
|
||||
const float diff = planner.steps_to_mm[Z_AXIS] * babystep_increment,
|
||||
new_probe_offset = zprobe_offset[Z_AXIS] + diff,
|
||||
new_probe_offset = probe_offset[Z_AXIS] + diff,
|
||||
new_offs =
|
||||
#if ENABLED(BABYSTEP_HOTEND_Z_OFFSET)
|
||||
do_probe ? new_probe_offset : hotend_offset[Z_AXIS][active_extruder] - diff
|
||||
|
@ -414,7 +414,7 @@ void scroll_screen(const uint8_t limit, const bool is_menu) {
|
|||
|
||||
babystep.add_steps(Z_AXIS, babystep_increment);
|
||||
|
||||
if (do_probe) zprobe_offset[Z_AXIS] = new_offs;
|
||||
if (do_probe) probe_offset[Z_AXIS] = new_offs;
|
||||
#if ENABLED(BABYSTEP_HOTEND_Z_OFFSET)
|
||||
else hotend_offset[Z_AXIS][active_extruder] = new_offs;
|
||||
#endif
|
||||
|
@ -428,10 +428,10 @@ void scroll_screen(const uint8_t limit, const bool is_menu) {
|
|||
draw_edit_screen(PSTR(MSG_Z_OFFSET), ftostr43sign(hotend_offset[Z_AXIS][active_extruder]));
|
||||
else
|
||||
#endif
|
||||
draw_edit_screen(PSTR(MSG_ZPROBE_ZOFFSET), ftostr43sign(zprobe_offset[Z_AXIS]));
|
||||
draw_edit_screen(PSTR(MSG_ZPROBE_ZOFFSET), ftostr43sign(probe_offset[Z_AXIS]));
|
||||
|
||||
#if ENABLED(BABYSTEP_ZPROBE_GFX_OVERLAY)
|
||||
if (do_probe) _lcd_zoffset_overlay_gfx(zprobe_offset[Z_AXIS]);
|
||||
if (do_probe) _lcd_zoffset_overlay_gfx(probe_offset[Z_AXIS]);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue