Skip to content

Commit a254354

Browse files
committed
BS_TOTAL_AXIS => BS_TOTAL_IND
1 parent 5e197df commit a254354

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Marlin/src/feature/babystep.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Babystep babystep;
3737

3838
volatile 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
4242
int16_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)

Marlin/src/feature/babystep.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
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

Marlin/src/lcd/menu/menu_tune.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
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
}

0 commit comments

Comments
 (0)