Skip to content

Commit 43177af

Browse files
committed
🧑‍💻 Digipot settings cleanup
1 parent 73ed543 commit 43177af

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Marlin/src/module/settings.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3712,18 +3712,16 @@ void MarlinSettings::reset() {
37123712
#if HAS_MOTOR_CURRENT_PWM
37133713
constexpr uint32_t tmp_motor_current_setting[MOTOR_CURRENT_COUNT] = PWM_MOTOR_CURRENT;
37143714
for (uint8_t q = 0; q < MOTOR_CURRENT_COUNT; ++q)
3715-
stepper.set_digipot_current(q, (stepper.motor_current_setting[q] = tmp_motor_current_setting[q]));
3715+
stepper.set_digipot_current(q, tmp_motor_current_setting[q]);
37163716
#endif
37173717

37183718
//
37193719
// DIGIPOTS
37203720
//
37213721
#if HAS_MOTOR_CURRENT_SPI
37223722
static constexpr uint32_t tmp_motor_current_setting[] = DIGIPOT_MOTOR_CURRENT;
3723-
DEBUG_ECHOLNPGM("Writing Digipot");
37243723
for (uint8_t q = 0; q < COUNT(tmp_motor_current_setting); ++q)
37253724
stepper.set_digipot_current(q, tmp_motor_current_setting[q]);
3726-
DEBUG_ECHOLNPGM("Digipot Written");
37273725
#endif
37283726

37293727
//

0 commit comments

Comments
 (0)