Digipots refactor / cleanup (#19690)
This commit is contained in:
@@ -97,7 +97,7 @@
|
||||
#include "feature/closedloop.h"
|
||||
#endif
|
||||
|
||||
#if HAS_I2C_DIGIPOT
|
||||
#if HAS_MOTOR_CURRENT_I2C
|
||||
#include "feature/digipot/digipot.h"
|
||||
#endif
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
#include "module/servo.h"
|
||||
#endif
|
||||
|
||||
#if ENABLED(DAC_STEPPER_CURRENT)
|
||||
#if ENABLED(HAS_MOTOR_CURRENT_DAC)
|
||||
#include "feature/dac/stepper_dac.h"
|
||||
#endif
|
||||
|
||||
@@ -1137,12 +1137,12 @@ void setup() {
|
||||
SETUP_RUN(enableStepperDrivers());
|
||||
#endif
|
||||
|
||||
#if HAS_I2C_DIGIPOT
|
||||
SETUP_RUN(digipot_i2c_init());
|
||||
#if HAS_MOTOR_CURRENT_I2C
|
||||
SETUP_RUN(digipot_i2c.init());
|
||||
#endif
|
||||
|
||||
#if ENABLED(DAC_STEPPER_CURRENT)
|
||||
SETUP_RUN(dac_init());
|
||||
#if ENABLED(HAS_MOTOR_CURRENT_DAC)
|
||||
SETUP_RUN(stepper_dac.init());
|
||||
#endif
|
||||
|
||||
#if EITHER(Z_PROBE_SLED, SOLENOID_PROBE) && HAS_SOLENOID_1
|
||||
|
||||
Reference in New Issue
Block a user