From 55ef04a5662f4859345ffdbb5332a0a17245db55 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 30 May 2016 23:34:32 -0700 Subject: [PATCH] Need to call dac_init() in setup() for DAC_STEPPER_CURRENT As reported by https://github.com/MarlinFirmware/Marlin/pull/3182#issuecomment-222595488 --- Marlin/Marlin_main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index b3c302d49..88a25fe33 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -856,6 +856,10 @@ void setup() { digipot_i2c_init(); #endif + #if ENABLED(DAC_STEPPER_CURRENT) + dac_init(); + #endif + #if ENABLED(Z_PROBE_SLED) pinMode(SLED_PIN, OUTPUT); digitalWrite(SLED_PIN, LOW); // turn it off