Fix stepper use before init. Add Ultimaker2+ Extended clone config (#13284)

This commit is contained in:
Vasily Evseenko
2019-03-03 02:29:02 +03:00
committed by Scott Lahteine
parent edc4e037c4
commit 71773b128d
6 changed files with 4380 additions and 1 deletions

View File

@ -2265,7 +2265,7 @@ void MarlinSettings::reset() {
//
#if HAS_MOTOR_CURRENT_PWM
uint32_t tmp_motor_current_setting[3] = PWM_MOTOR_CURRENT;
constexpr uint32_t tmp_motor_current_setting[3] = PWM_MOTOR_CURRENT;
for (uint8_t q = 3; q--;)
stepper.digipot_current(q, (stepper.motor_current_setting[q] = tmp_motor_current_setting[q]));
#endif