File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ Babystep babystep;
3737
3838volatile int16_t Babystep::steps[BS_AXIS_IND(Z_AXIS) + 1 ];
3939#if ENABLED(BABYSTEP_DISPLAY_TOTAL)
40- int16_t Babystep::axis_total[BS_TOTAL_AXIS (Z_AXIS) + 1 ];
40+ int16_t Babystep::axis_total[BS_TOTAL_IND (Z_AXIS) + 1 ];
4141#endif
4242int16_t Babystep::accum;
4343
@@ -66,7 +66,7 @@ void Babystep::add_steps(const AxisEnum axis, const int16_t distance) {
6666
6767 accum += distance; // Count up babysteps for the UI
6868 #if ENABLED(BABYSTEP_DISPLAY_TOTAL)
69- axis_total[BS_TOTAL_AXIS (axis)] += distance;
69+ axis_total[BS_TOTAL_IND (axis)] += distance;
7070 #endif
7171
7272 #if ENABLED(BABYSTEP_ALWAYS_AVAILABLE)
Original file line number Diff line number Diff line change 4141
4242#if ENABLED(BABYSTEP_DISPLAY_TOTAL)
4343 #if ENABLED(BABYSTEP_XY)
44- #define BS_TOTAL_AXIS (A ) A
44+ #define BS_TOTAL_IND (A ) A
4545 #else
46- #define BS_TOTAL_AXIS (A ) 0
46+ #define BS_TOTAL_IND (A ) 0
4747 #endif
4848#endif
4949
@@ -53,13 +53,13 @@ class Babystep {
5353 static int16_t accum; // Total babysteps in current edit
5454
5555 #if ENABLED(BABYSTEP_DISPLAY_TOTAL)
56- static int16_t axis_total[BS_TOTAL_AXIS (Z_AXIS) + 1 ]; // Total babysteps since G28
56+ static int16_t axis_total[BS_TOTAL_IND (Z_AXIS) + 1 ]; // Total babysteps since G28
5757 static inline void reset_total (const AxisEnum axis) {
5858 if (true
5959 #if ENABLED(BABYSTEP_XY)
6060 && axis == Z_AXIS
6161 #endif
62- ) axis_total[BS_TOTAL_AXIS (axis)] = 0 ;
62+ ) axis_total[BS_TOTAL_IND (axis)] = 0 ;
6363 }
6464 #endif
6565
Original file line number Diff line number Diff line change 8181 #endif
8282 lcd_put_u8str_P (GET_TEXT (MSG_BABYSTEP_TOTAL));
8383 lcd_put_wchar (' :' );
84- lcd_put_u8str (LCD_Z_OFFSET_FUNC (spm * babystep.axis_total [BS_TOTAL_AXIS (axis)]));
84+ lcd_put_u8str (LCD_Z_OFFSET_FUNC (spm * babystep.axis_total [BS_TOTAL_IND (axis)]));
8585 }
8686 #endif
8787 }
You can’t perform that action at this time.
0 commit comments