From 123a2b28fc6c4ddc3cafc331bed92a0d3a59eb75 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 12 Aug 2020 18:46:55 -0500 Subject: [PATCH] Stepper current refactor --- Marlin/src/module/settings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/src/module/settings.cpp b/Marlin/src/module/settings.cpp index 4a4fee2be5..00782bff2b 100644 --- a/Marlin/src/module/settings.cpp +++ b/Marlin/src/module/settings.cpp @@ -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