Stepper current refactor

This commit is contained in:
Scott Lahteine
2020-08-12 18:46:55 -05:00
committed by InsanityAutomation
parent 28261437f8
commit 123a2b28fc
+2 -2
View File
@@ -2820,11 +2820,11 @@ void MarlinSettings::reset() {
//
// DIGIPOTS
//
#if HAS_DIGIPOTSS
#if HAS_MOTOR_CURRENT_SPI
static constexpr uint32_t tmp_motor_current_setting[] = DIGIPOT_MOTOR_CURRENT;
DEBUG_ECHOLNPGM("Writing Digipot");
LOOP_L_N(q, COUNT(tmp_motor_current_setting))
stepper.digipot_current(q, tmp_motor_current_setting[q]);
stepper.set_digipot_current(q, tmp_motor_current_setting[q]);
DEBUG_ECHOLNPGM("Digipot Written");
#endif