Browse Source

Merge pull request #6341 from benlye/benlye-lcd_babystep_zoffset

Fix lcd_babystep_zoffset()
pull/1/head
Scott Lahteine 8 years ago
committed by GitHub
parent
commit
b305699046
  1. 2
      Marlin/ultralcd.cpp

2
Marlin/ultralcd.cpp

@ -861,7 +861,7 @@ void kill_screen(const char* lcd_msg) {
const int babystep_increment = (int32_t)encoderPosition * (BABYSTEP_MULTIPLICATOR);
encoderPosition = 0;
const float new_zoffset = zprobe_zoffset + steps_to_mm[Z_AXIS] * babystep_increment;
const float new_zoffset = zprobe_zoffset + planner.steps_to_mm[Z_AXIS] * babystep_increment;
if (WITHIN(new_zoffset, Z_PROBE_OFFSET_RANGE_MIN, Z_PROBE_OFFSET_RANGE_MAX)) {
if (planner.abl_enabled)

Loading…
Cancel
Save