|
@@ -80,7 +80,7 @@ void GcodeSuite::G34() {
|
80
|
80
|
const uint16_t target_current = parser.intval('S', GANTRY_CALIBRATION_CURRENT);
|
81
|
81
|
const uint32_t previous_current = stepper.motor_current_setting[Z_AXIS];
|
82
|
82
|
stepper.set_digipot_current(1, target_current);
|
83
|
|
- #elif HAS_MOTOR_CURRENT_DAC
|
|
83
|
+ #elif ENABLED(HAS_MOTOR_CURRENT_DAC)
|
84
|
84
|
const float target_current = parser.floatval('S', GANTRY_CALIBRATION_CURRENT);
|
85
|
85
|
const float previous_current = dac_amps(Z_AXIS, target_current);
|
86
|
86
|
stepper_dac.set_current_value(Z_AXIS, target_current);
|
|
@@ -126,7 +126,7 @@ void GcodeSuite::G34() {
|
126
|
126
|
stepper.set_digipot_current(Z_AXIS, previous_current);
|
127
|
127
|
#elif HAS_MOTOR_CURRENT_PWM
|
128
|
128
|
stepper.set_digipot_current(1, previous_current);
|
129
|
|
- #elif HAS_MOTOR_CURRENT_DAC
|
|
129
|
+ #elif ENABLED(HAS_MOTOR_CURRENT_DAC)
|
130
|
130
|
stepper_dac.set_current_value(Z_AXIS, previous_current);
|
131
|
131
|
#elif ENABLED(HAS_MOTOR_CURRENT_I2C)
|
132
|
132
|
digipot_i2c.set_current(Z_AXIS, previous_current)
|