Browse Source

Merge pull request #6341 from benlye/benlye-lcd_babystep_zoffset

Fix lcd_babystep_zoffset()
Scott Lahteine 7 years ago
parent
commit
b305699046
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/ultralcd.cpp

+ 1
- 1
Marlin/ultralcd.cpp View File

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

Loading…
Cancel
Save