|
@@ -41,9 +41,9 @@
|
41
|
41
|
|
42
|
42
|
#if ENABLED(BABYSTEP_DISPLAY_TOTAL)
|
43
|
43
|
#if ENABLED(BABYSTEP_XY)
|
44
|
|
- #define BS_TOTAL_AXIS(A) A
|
|
44
|
+ #define BS_TOTAL_IND(A) A
|
45
|
45
|
#else
|
46
|
|
- #define BS_TOTAL_AXIS(A) 0
|
|
46
|
+ #define BS_TOTAL_IND(A) 0
|
47
|
47
|
#endif
|
48
|
48
|
#endif
|
49
|
49
|
|
|
@@ -53,13 +53,13 @@ public:
|
53
|
53
|
static int16_t accum; // Total babysteps in current edit
|
54
|
54
|
|
55
|
55
|
#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
|
57
|
57
|
static inline void reset_total(const AxisEnum axis) {
|
58
|
58
|
if (true
|
59
|
59
|
#if ENABLED(BABYSTEP_XY)
|
60
|
60
|
&& axis == Z_AXIS
|
61
|
61
|
#endif
|
62
|
|
- ) axis_total[BS_TOTAL_AXIS(axis)] = 0;
|
|
62
|
+ ) axis_total[BS_TOTAL_IND(axis)] = 0;
|
63
|
63
|
}
|
64
|
64
|
#endif
|
65
|
65
|
|