Selaa lähdekoodia

axis_steps_per_unit => axis_steps_per_mm

Scott Lahteine 8 vuotta sitten
vanhempi
commit
72c6f2923f

+ 1
- 1
Marlin/Conditionals.h Näytä tiedosto

@@ -426,7 +426,7 @@
426 426
    */
427 427
   #if ENABLED(ADVANCE)
428 428
     #define EXTRUSION_AREA (0.25 * (D_FILAMENT) * (D_FILAMENT) * M_PI)
429
-    #define STEPS_PER_CUBIC_MM_E (axis_steps_per_unit[E_AXIS] / (EXTRUSION_AREA))
429
+    #define STEPS_PER_CUBIC_MM_E (axis_steps_per_mm[E_AXIS] / (EXTRUSION_AREA))
430 430
   #endif
431 431
 
432 432
   #if ENABLED(ULTIPANEL) && DISABLED(ELB_FULL_GRAPHIC_CONTROLLER)

+ 10
- 10
Marlin/Marlin_main.cpp Näytä tiedosto

@@ -156,7 +156,7 @@
156 156
  * M84  - Disable steppers until next move,
157 157
  *        or use S<seconds> to specify an inactivity timeout, after which the steppers will be disabled.  S0 to disable the timeout.
158 158
  * M85  - Set inactivity shutdown timer with parameter S<seconds>. To disable set zero (default)
159
- * M92  - Set planner.axis_steps_per_unit - same syntax as G92
159
+ * M92  - Set planner.axis_steps_per_mm - same syntax as G92
160 160
  * M104 - Set extruder target temp
161 161
  * M105 - Read current temp
162 162
  * M106 - Fan on
@@ -1675,7 +1675,7 @@ static void setup_for_endstop_move() {
1675 1675
        * is not where we said to go.
1676 1676
        */
1677 1677
       long stop_steps = stepper.position(Z_AXIS);
1678
-      float mm = start_z - float(start_steps - stop_steps) / planner.axis_steps_per_unit[Z_AXIS];
1678
+      float mm = start_z - float(start_steps - stop_steps) / planner.axis_steps_per_mm[Z_AXIS];
1679 1679
       current_position[Z_AXIS] = mm;
1680 1680
 
1681 1681
       #if ENABLED(DEBUG_LEVELING_FEATURE)
@@ -5147,15 +5147,15 @@ inline void gcode_M92() {
5147 5147
       if (i == E_AXIS) {
5148 5148
         float value = code_value_per_axis_unit(i);
5149 5149
         if (value < 20.0) {
5150
-          float factor = planner.axis_steps_per_unit[i] / value; // increase e constants if M92 E14 is given for netfab.
5150
+          float factor = planner.axis_steps_per_mm[i] / value; // increase e constants if M92 E14 is given for netfab.
5151 5151
           planner.max_e_jerk *= factor;
5152 5152
           planner.max_feedrate[i] *= factor;
5153 5153
           planner.max_acceleration_steps_per_s2[i] *= factor;
5154 5154
         }
5155
-        planner.axis_steps_per_unit[i] = value;
5155
+        planner.axis_steps_per_mm[i] = value;
5156 5156
       }
5157 5157
       else {
5158
-        planner.axis_steps_per_unit[i] = code_value_per_axis_unit(i);
5158
+        planner.axis_steps_per_mm[i] = code_value_per_axis_unit(i);
5159 5159
       }
5160 5160
     }
5161 5161
   }
@@ -5190,9 +5190,9 @@ static void report_current_position() {
5190 5190
     SERIAL_EOL;
5191 5191
 
5192 5192
     SERIAL_PROTOCOLPGM("SCARA step Cal - Theta:");
5193
-    SERIAL_PROTOCOL(delta[X_AXIS] / 90 * planner.axis_steps_per_unit[X_AXIS]);
5193
+    SERIAL_PROTOCOL(delta[X_AXIS] / 90 * planner.axis_steps_per_mm[X_AXIS]);
5194 5194
     SERIAL_PROTOCOLPGM("   Psi+Theta:");
5195
-    SERIAL_PROTOCOL((delta[Y_AXIS] - delta[X_AXIS]) / 90 * planner.axis_steps_per_unit[Y_AXIS]);
5195
+    SERIAL_PROTOCOL((delta[Y_AXIS] - delta[X_AXIS]) / 90 * planner.axis_steps_per_mm[Y_AXIS]);
5196 5196
     SERIAL_EOL; SERIAL_EOL;
5197 5197
   #endif
5198 5198
 }
@@ -5347,7 +5347,7 @@ inline void gcode_M201() {
5347 5347
 #if 0 // Not used for Sprinter/grbl gen6
5348 5348
   inline void gcode_M202() {
5349 5349
     for (int8_t i = 0; i < NUM_AXIS; i++) {
5350
-      if (code_seen(axis_codes[i])) axis_travel_steps_per_sqr_second[i] = code_value_axis_units(i) * planner.axis_steps_per_unit[i];
5350
+      if (code_seen(axis_codes[i])) axis_travel_steps_per_sqr_second[i] = code_value_axis_units(i) * planner.axis_steps_per_mm[i];
5351 5351
     }
5352 5352
   }
5353 5353
 #endif
@@ -8209,8 +8209,8 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
8209 8209
         }
8210 8210
         float oldepos = current_position[E_AXIS], oldedes = destination[E_AXIS];
8211 8211
         planner.buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS],
8212
-                         destination[E_AXIS] + (EXTRUDER_RUNOUT_EXTRUDE) * (EXTRUDER_RUNOUT_ESTEPS) / planner.axis_steps_per_unit[E_AXIS],
8213
-                         (EXTRUDER_RUNOUT_SPEED) / 60. * (EXTRUDER_RUNOUT_ESTEPS) / planner.axis_steps_per_unit[E_AXIS], active_extruder);
8212
+                         destination[E_AXIS] + (EXTRUDER_RUNOUT_EXTRUDE) * (EXTRUDER_RUNOUT_ESTEPS) / planner.axis_steps_per_mm[E_AXIS],
8213
+                         (EXTRUDER_RUNOUT_SPEED) / 60. * (EXTRUDER_RUNOUT_ESTEPS) / planner.axis_steps_per_mm[E_AXIS], active_extruder);
8214 8214
       current_position[E_AXIS] = oldepos;
8215 8215
       destination[E_AXIS] = oldedes;
8216 8216
       planner.set_e_position_mm(oldepos);

+ 8
- 8
Marlin/configuration_store.cpp Näytä tiedosto

@@ -43,7 +43,7 @@
43 43
  *
44 44
  *  100  Version (char x4)
45 45
  *
46
- *  104  M92 XYZE  planner.axis_steps_per_unit (float x4)
46
+ *  104  M92 XYZE  planner.axis_steps_per_mm (float x4)
47 47
  *  120  M203 XYZE planner.max_feedrate (float x4)
48 48
  *  136  M201 XYZE planner.max_acceleration_mm_per_s2 (uint32_t x4)
49 49
  *  152  M204 P    planner.acceleration (float)
@@ -173,7 +173,7 @@ void Config_StoreSettings()  {
173 173
   char ver[4] = "000";
174 174
   int i = EEPROM_OFFSET;
175 175
   EEPROM_WRITE_VAR(i, ver); // invalidate data first
176
-  EEPROM_WRITE_VAR(i, planner.axis_steps_per_unit);
176
+  EEPROM_WRITE_VAR(i, planner.axis_steps_per_mm);
177 177
   EEPROM_WRITE_VAR(i, planner.max_feedrate);
178 178
   EEPROM_WRITE_VAR(i, planner.max_acceleration_mm_per_s2);
179 179
   EEPROM_WRITE_VAR(i, planner.acceleration);
@@ -353,7 +353,7 @@ void Config_RetrieveSettings() {
353 353
     float dummy = 0;
354 354
 
355 355
     // version number match
356
-    EEPROM_READ_VAR(i, planner.axis_steps_per_unit);
356
+    EEPROM_READ_VAR(i, planner.axis_steps_per_mm);
357 357
     EEPROM_READ_VAR(i, planner.max_feedrate);
358 358
     EEPROM_READ_VAR(i, planner.max_acceleration_mm_per_s2);
359 359
 
@@ -527,7 +527,7 @@ void Config_ResetDefault() {
527 527
   float tmp2[] = DEFAULT_MAX_FEEDRATE;
528 528
   long tmp3[] = DEFAULT_MAX_ACCELERATION;
529 529
   for (uint8_t i = 0; i < NUM_AXIS; i++) {
530
-    planner.axis_steps_per_unit[i] = tmp1[i];
530
+    planner.axis_steps_per_mm[i] = tmp1[i];
531 531
     planner.max_feedrate[i] = tmp2[i];
532 532
     planner.max_acceleration_mm_per_s2[i] = tmp3[i];
533 533
     #if ENABLED(SCARA)
@@ -652,10 +652,10 @@ void Config_PrintSettings(bool forReplay) {
652 652
     SERIAL_ECHOLNPGM("Steps per unit:");
653 653
     CONFIG_ECHO_START;
654 654
   }
655
-  SERIAL_ECHOPAIR("  M92 X", planner.axis_steps_per_unit[X_AXIS]);
656
-  SERIAL_ECHOPAIR(" Y", planner.axis_steps_per_unit[Y_AXIS]);
657
-  SERIAL_ECHOPAIR(" Z", planner.axis_steps_per_unit[Z_AXIS]);
658
-  SERIAL_ECHOPAIR(" E", planner.axis_steps_per_unit[E_AXIS]);
655
+  SERIAL_ECHOPAIR("  M92 X", planner.axis_steps_per_mm[X_AXIS]);
656
+  SERIAL_ECHOPAIR(" Y", planner.axis_steps_per_mm[Y_AXIS]);
657
+  SERIAL_ECHOPAIR(" Z", planner.axis_steps_per_mm[Z_AXIS]);
658
+  SERIAL_ECHOPAIR(" E", planner.axis_steps_per_mm[E_AXIS]);
659 659
   SERIAL_EOL;
660 660
 
661 661
   CONFIG_ECHO_START;

+ 31
- 31
Marlin/planner.cpp Näytä tiedosto

@@ -81,7 +81,7 @@ volatile uint8_t Planner::block_buffer_head = 0;           // Index of the next
81 81
 volatile uint8_t Planner::block_buffer_tail = 0;
82 82
 
83 83
 float Planner::max_feedrate[NUM_AXIS]; // Max speeds in mm per minute
84
-float Planner::axis_steps_per_unit[NUM_AXIS];
84
+float Planner::axis_steps_per_mm[NUM_AXIS];
85 85
 unsigned long Planner::max_acceleration_steps_per_s2[NUM_AXIS];
86 86
 unsigned long Planner::max_acceleration_mm_per_s2[NUM_AXIS]; // Use M201 to override by software
87 87
 
@@ -549,10 +549,10 @@ void Planner::check_axes_activity() {
549 549
   // Calculate target position in absolute steps
550 550
   //this should be done after the wait, because otherwise a M92 code within the gcode disrupts this calculation somehow
551 551
   long target[NUM_AXIS] = {
552
-    lround(x * axis_steps_per_unit[X_AXIS]),
553
-    lround(y * axis_steps_per_unit[Y_AXIS]),
554
-    lround(z * axis_steps_per_unit[Z_AXIS]),
555
-    lround(e * axis_steps_per_unit[E_AXIS])
552
+    lround(x * axis_steps_per_mm[X_AXIS]),
553
+    lround(y * axis_steps_per_mm[Y_AXIS]),
554
+    lround(z * axis_steps_per_mm[Z_AXIS]),
555
+    lround(e * axis_steps_per_mm[E_AXIS])
556 556
   };
557 557
 
558 558
   long dx = target[X_AXIS] - position[X_AXIS],
@@ -574,7 +574,7 @@ void Planner::check_axes_activity() {
574 574
         SERIAL_ECHOLNPGM(MSG_ERR_COLD_EXTRUDE_STOP);
575 575
       }
576 576
       #if ENABLED(PREVENT_LENGTHY_EXTRUDE)
577
-        if (labs(de) > axis_steps_per_unit[E_AXIS] * (EXTRUDE_MAXLENGTH)) {
577
+        if (labs(de) > axis_steps_per_mm[E_AXIS] * (EXTRUDE_MAXLENGTH)) {
578 578
           position[E_AXIS] = target[E_AXIS]; // Behave as if the move really took place, but ignore E part
579 579
           de = 0; // no difference
580 580
           SERIAL_ECHO_START;
@@ -771,31 +771,31 @@ void Planner::check_axes_activity() {
771 771
   #if ENABLED(COREXY) || ENABLED(COREXZ) || ENABLED(COREYZ)
772 772
     float delta_mm[6];
773 773
     #if ENABLED(COREXY)
774
-      delta_mm[X_HEAD] = dx / axis_steps_per_unit[A_AXIS];
775
-      delta_mm[Y_HEAD] = dy / axis_steps_per_unit[B_AXIS];
776
-      delta_mm[Z_AXIS] = dz / axis_steps_per_unit[Z_AXIS];
777
-      delta_mm[A_AXIS] = (dx + dy) / axis_steps_per_unit[A_AXIS];
778
-      delta_mm[B_AXIS] = (dx - dy) / axis_steps_per_unit[B_AXIS];
774
+      delta_mm[X_HEAD] = dx / axis_steps_per_mm[A_AXIS];
775
+      delta_mm[Y_HEAD] = dy / axis_steps_per_mm[B_AXIS];
776
+      delta_mm[Z_AXIS] = dz / axis_steps_per_mm[Z_AXIS];
777
+      delta_mm[A_AXIS] = (dx + dy) / axis_steps_per_mm[A_AXIS];
778
+      delta_mm[B_AXIS] = (dx - dy) / axis_steps_per_mm[B_AXIS];
779 779
     #elif ENABLED(COREXZ)
780
-      delta_mm[X_HEAD] = dx / axis_steps_per_unit[A_AXIS];
781
-      delta_mm[Y_AXIS] = dy / axis_steps_per_unit[Y_AXIS];
782
-      delta_mm[Z_HEAD] = dz / axis_steps_per_unit[C_AXIS];
783
-      delta_mm[A_AXIS] = (dx + dz) / axis_steps_per_unit[A_AXIS];
784
-      delta_mm[C_AXIS] = (dx - dz) / axis_steps_per_unit[C_AXIS];
780
+      delta_mm[X_HEAD] = dx / axis_steps_per_mm[A_AXIS];
781
+      delta_mm[Y_AXIS] = dy / axis_steps_per_mm[Y_AXIS];
782
+      delta_mm[Z_HEAD] = dz / axis_steps_per_mm[C_AXIS];
783
+      delta_mm[A_AXIS] = (dx + dz) / axis_steps_per_mm[A_AXIS];
784
+      delta_mm[C_AXIS] = (dx - dz) / axis_steps_per_mm[C_AXIS];
785 785
     #elif ENABLED(COREYZ)
786
-      delta_mm[X_AXIS] = dx / axis_steps_per_unit[A_AXIS];
787
-      delta_mm[Y_HEAD] = dy / axis_steps_per_unit[Y_AXIS];
788
-      delta_mm[Z_HEAD] = dz / axis_steps_per_unit[C_AXIS];
789
-      delta_mm[B_AXIS] = (dy + dz) / axis_steps_per_unit[B_AXIS];
790
-      delta_mm[C_AXIS] = (dy - dz) / axis_steps_per_unit[C_AXIS];
786
+      delta_mm[X_AXIS] = dx / axis_steps_per_mm[A_AXIS];
787
+      delta_mm[Y_HEAD] = dy / axis_steps_per_mm[Y_AXIS];
788
+      delta_mm[Z_HEAD] = dz / axis_steps_per_mm[C_AXIS];
789
+      delta_mm[B_AXIS] = (dy + dz) / axis_steps_per_mm[B_AXIS];
790
+      delta_mm[C_AXIS] = (dy - dz) / axis_steps_per_mm[C_AXIS];
791 791
     #endif
792 792
   #else
793 793
     float delta_mm[4];
794
-    delta_mm[X_AXIS] = dx / axis_steps_per_unit[X_AXIS];
795
-    delta_mm[Y_AXIS] = dy / axis_steps_per_unit[Y_AXIS];
796
-    delta_mm[Z_AXIS] = dz / axis_steps_per_unit[Z_AXIS];
794
+    delta_mm[X_AXIS] = dx / axis_steps_per_mm[X_AXIS];
795
+    delta_mm[Y_AXIS] = dy / axis_steps_per_mm[Y_AXIS];
796
+    delta_mm[Z_AXIS] = dz / axis_steps_per_mm[Z_AXIS];
797 797
   #endif
798
-  delta_mm[E_AXIS] = (de / axis_steps_per_unit[E_AXIS]) * volumetric_multiplier[extruder] * extruder_multiplier[extruder] / 100.0;
798
+  delta_mm[E_AXIS] = (de / axis_steps_per_mm[E_AXIS]) * volumetric_multiplier[extruder] * extruder_multiplier[extruder] / 100.0;
799 799
 
800 800
   if (block->steps[X_AXIS] <= dropsegments && block->steps[Y_AXIS] <= dropsegments && block->steps[Z_AXIS] <= dropsegments) {
801 801
     block->millimeters = fabs(delta_mm[E_AXIS]);
@@ -1127,10 +1127,10 @@ void Planner::check_axes_activity() {
1127 1127
       apply_rotation_xyz(bed_level_matrix, x, y, z);
1128 1128
     #endif
1129 1129
 
1130
-    long nx = position[X_AXIS] = lround(x * axis_steps_per_unit[X_AXIS]),
1131
-         ny = position[Y_AXIS] = lround(y * axis_steps_per_unit[Y_AXIS]),
1132
-         nz = position[Z_AXIS] = lround(z * axis_steps_per_unit[Z_AXIS]),
1133
-         ne = position[E_AXIS] = lround(e * axis_steps_per_unit[E_AXIS]);
1130
+    long nx = position[X_AXIS] = lround(x * axis_steps_per_mm[X_AXIS]),
1131
+         ny = position[Y_AXIS] = lround(y * axis_steps_per_mm[Y_AXIS]),
1132
+         nz = position[Z_AXIS] = lround(z * axis_steps_per_mm[Z_AXIS]),
1133
+         ne = position[E_AXIS] = lround(e * axis_steps_per_mm[E_AXIS]);
1134 1134
     stepper.set_position(nx, ny, nz, ne);
1135 1135
     previous_nominal_speed = 0.0; // Resets planner junction speeds. Assumes start from rest.
1136 1136
 
@@ -1141,14 +1141,14 @@ void Planner::check_axes_activity() {
1141 1141
  * Directly set the planner E position (hence the stepper E position).
1142 1142
  */
1143 1143
 void Planner::set_e_position_mm(const float& e) {
1144
-  position[E_AXIS] = lround(e * axis_steps_per_unit[E_AXIS]);
1144
+  position[E_AXIS] = lround(e * axis_steps_per_mm[E_AXIS]);
1145 1145
   stepper.set_e_position(position[E_AXIS]);
1146 1146
 }
1147 1147
 
1148 1148
 // Recalculate the steps/s^2 acceleration rates, based on the mm/s^2
1149 1149
 void Planner::reset_acceleration_rates() {
1150 1150
   for (int i = 0; i < NUM_AXIS; i++)
1151
-    max_acceleration_steps_per_s2[i] = max_acceleration_mm_per_s2[i] * axis_steps_per_unit[i];
1151
+    max_acceleration_steps_per_s2[i] = max_acceleration_mm_per_s2[i] * axis_steps_per_mm[i];
1152 1152
 }
1153 1153
 
1154 1154
 #if ENABLED(AUTOTEMP)

+ 3
- 3
Marlin/planner.h Näytä tiedosto

@@ -112,7 +112,7 @@ class Planner {
112 112
     static volatile uint8_t block_buffer_tail;
113 113
 
114 114
     static float max_feedrate[NUM_AXIS]; // Max speeds in mm per minute
115
-    static float axis_steps_per_unit[NUM_AXIS];
115
+    static float axis_steps_per_mm[NUM_AXIS];
116 116
     static unsigned long max_acceleration_steps_per_s2[NUM_AXIS];
117 117
     static unsigned long max_acceleration_mm_per_s2[NUM_AXIS]; // Use M201 to override by software
118 118
 
@@ -134,7 +134,7 @@ class Planner {
134 134
 
135 135
     /**
136 136
      * The current position of the tool in absolute steps
137
-     * Reclculated if any axis_steps_per_unit are changed by gcode
137
+     * Reclculated if any axis_steps_per_mm are changed by gcode
138 138
      */
139 139
     static long position[NUM_AXIS];
140 140
 
@@ -212,7 +212,7 @@ class Planner {
212 212
        * Set the planner.position and individual stepper positions.
213 213
        * Used by G92, G28, G29, and other procedures.
214 214
        *
215
-       * Multiplies by axis_steps_per_unit[] and does necessary conversion
215
+       * Multiplies by axis_steps_per_mm[] and does necessary conversion
216 216
        * for COREXY / COREXZ / COREYZ to set the corresponding stepper positions.
217 217
        *
218 218
        * Clears previous speed values.

+ 1
- 1
Marlin/stepper.cpp Näytä tiedosto

@@ -754,7 +754,7 @@ float Stepper::get_axis_position_mm(AxisEnum axis) {
754 754
   #else
755 755
     axis_steps = position(axis);
756 756
   #endif
757
-  return axis_steps / planner.axis_steps_per_unit[axis];
757
+  return axis_steps / planner.axis_steps_per_mm[axis];
758 758
 }
759 759
 
760 760
 void Stepper::finish_and_disable() {

+ 1
- 1
Marlin/stepper.h Näytä tiedosto

@@ -243,7 +243,7 @@ class Stepper {
243 243
     // Triggered position of an axis in mm (not core-savvy)
244 244
     //
245 245
     static FORCE_INLINE float triggered_position_mm(AxisEnum axis) {
246
-      return endstops_trigsteps[axis] / planner.axis_steps_per_unit[axis];
246
+      return endstops_trigsteps[axis] / planner.axis_steps_per_mm[axis];
247 247
     }
248 248
 
249 249
   private:

+ 1
- 1
Marlin/temperature.cpp Näytä tiedosto

@@ -556,7 +556,7 @@ float Temperature::get_pid_output(int e) {
556 556
               lpq[lpq_ptr++] = 0;
557 557
             }
558 558
             if (lpq_ptr >= lpq_len) lpq_ptr = 0;
559
-            cTerm[_CTERM_INDEX] = (lpq[lpq_ptr] / planner.axis_steps_per_unit[E_AXIS]) * PID_PARAM(Kc, e);
559
+            cTerm[_CTERM_INDEX] = (lpq[lpq_ptr] / planner.axis_steps_per_mm[E_AXIS]) * PID_PARAM(Kc, e);
560 560
             pid_output += cTerm[e];
561 561
           }
562 562
         #endif //PID_ADD_EXTRUSION_RATE

+ 5
- 5
Marlin/ultralcd.cpp Näytä tiedosto

@@ -1692,14 +1692,14 @@ static void lcd_control_motion_menu() {
1692 1692
   MENU_ITEM_EDIT_CALLBACK(long5, MSG_AMAX MSG_E, &planner.max_acceleration_mm_per_s2[E_AXIS], 100, 99000, _reset_acceleration_rates);
1693 1693
   MENU_ITEM_EDIT(float5, MSG_A_RETRACT, &planner.retract_acceleration, 100, 99000);
1694 1694
   MENU_ITEM_EDIT(float5, MSG_A_TRAVEL, &planner.travel_acceleration, 100, 99000);
1695
-  MENU_ITEM_EDIT(float52, MSG_XSTEPS, &planner.axis_steps_per_unit[X_AXIS], 5, 9999);
1696
-  MENU_ITEM_EDIT(float52, MSG_YSTEPS, &planner.axis_steps_per_unit[Y_AXIS], 5, 9999);
1695
+  MENU_ITEM_EDIT(float52, MSG_XSTEPS, &planner.axis_steps_per_mm[X_AXIS], 5, 9999);
1696
+  MENU_ITEM_EDIT(float52, MSG_YSTEPS, &planner.axis_steps_per_mm[Y_AXIS], 5, 9999);
1697 1697
   #if ENABLED(DELTA)
1698
-    MENU_ITEM_EDIT(float52, MSG_ZSTEPS, &planner.axis_steps_per_unit[Z_AXIS], 5, 9999);
1698
+    MENU_ITEM_EDIT(float52, MSG_ZSTEPS, &planner.axis_steps_per_mm[Z_AXIS], 5, 9999);
1699 1699
   #else
1700
-    MENU_ITEM_EDIT(float51, MSG_ZSTEPS, &planner.axis_steps_per_unit[Z_AXIS], 5, 9999);
1700
+    MENU_ITEM_EDIT(float51, MSG_ZSTEPS, &planner.axis_steps_per_mm[Z_AXIS], 5, 9999);
1701 1701
   #endif
1702
-  MENU_ITEM_EDIT(float51, MSG_ESTEPS, &planner.axis_steps_per_unit[E_AXIS], 5, 9999);
1702
+  MENU_ITEM_EDIT(float51, MSG_ESTEPS, &planner.axis_steps_per_mm[E_AXIS], 5, 9999);
1703 1703
   #if ENABLED(ABORT_ON_ENDSTOP_HIT_FEATURE_ENABLED)
1704 1704
     MENU_ITEM_EDIT(bool, MSG_ENDSTOP_ABORT, &stepper.abort_on_endstop_hit);
1705 1705
   #endif

Loading…
Peruuta
Tallenna