Allow G2_PWM to be slimmer
This commit is contained in:
@ -2696,7 +2696,7 @@ void MarlinSettings::reset() {
|
||||
|
||||
#if HAS_MOTOR_CURRENT_PWM
|
||||
constexpr uint32_t tmp_motor_current_setting[3] = PWM_MOTOR_CURRENT;
|
||||
for (uint8_t q = 3; q--;)
|
||||
LOOP_L_N(q, 3)
|
||||
stepper.digipot_current(q, (stepper.motor_current_setting[q] = tmp_motor_current_setting[q]));
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user