Browse Source

Fix lcd_babystep_zoffset()

Resolve 'steps_to_mm was not declared in this scope' compilation error after recent changes to merge babystepping with M851
benlye 8 years ago
parent
commit
1f9ee42750
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/ultralcd.cpp

+ 1
- 1
Marlin/ultralcd.cpp View File

861
           const int babystep_increment = (int32_t)encoderPosition * (BABYSTEP_MULTIPLICATOR);
861
           const int babystep_increment = (int32_t)encoderPosition * (BABYSTEP_MULTIPLICATOR);
862
           encoderPosition = 0;
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
           if (WITHIN(new_zoffset, Z_PROBE_OFFSET_RANGE_MIN, Z_PROBE_OFFSET_RANGE_MAX)) {
865
           if (WITHIN(new_zoffset, Z_PROBE_OFFSET_RANGE_MIN, Z_PROBE_OFFSET_RANGE_MAX)) {
866
 
866
 
867
             if (planner.abl_enabled)
867
             if (planner.abl_enabled)

Loading…
Cancel
Save