|
@@ -1979,11 +1979,6 @@ bool Stepper::is_block_busy(const block_t* const block) {
|
1979
|
1979
|
|
1980
|
1980
|
void Stepper::init() {
|
1981
|
1981
|
|
1982
|
|
- // Init Digipot Motor Current
|
1983
|
|
- #if HAS_DIGIPOTSS || HAS_MOTOR_CURRENT_PWM
|
1984
|
|
- digipot_init();
|
1985
|
|
- #endif
|
1986
|
|
-
|
1987
|
1982
|
#if MB(ALLIGATOR)
|
1988
|
1983
|
const float motor_current[] = MOTOR_CURRENT;
|
1989
|
1984
|
unsigned int digipot_motor = 0;
|
|
@@ -2165,8 +2160,12 @@ void Stepper::init() {
|
2165
|
2160
|
| (INVERT_Z_DIR ? _BV(Z_AXIS) : 0);
|
2166
|
2161
|
|
2167
|
2162
|
set_directions();
|
2168
|
|
- #if HAS_MOTOR_CURRENT_PWM
|
2169
|
|
- initialized = true;
|
|
2163
|
+
|
|
2164
|
+ #if HAS_DIGIPOTSS || HAS_MOTOR_CURRENT_PWM
|
|
2165
|
+ #if HAS_MOTOR_CURRENT_PWM
|
|
2166
|
+ initialized = true;
|
|
2167
|
+ #endif
|
|
2168
|
+ digipot_init();
|
2170
|
2169
|
#endif
|
2171
|
2170
|
}
|
2172
|
2171
|
|