Updates for TMC2660 init (#14245)

This commit is contained in:
teemuatlut
2019-06-14 07:16:10 +03:00
committed by Scott Lahteine
parent dfdbd1e75f
commit 29afd11cbf
3 changed files with 9 additions and 8 deletions

View File

@ -565,13 +565,14 @@
chopconf.toff = chopper_timing.toff;
chopconf.hend = chopper_timing.hend + 3;
chopconf.hstrt = chopper_timing.hstrt - 1;
#if ENABLED(SQUARE_WAVE_STEPPING)
chopconf.dedge = true;
#endif
st.CHOPCONF(chopconf.sr);
st.sdoff(0);
st.rms_current(mA);
st.microsteps(microsteps);
#if ENABLED(SQUARE_WAVE_STEPPING)
st.dedge(true);
#endif
st.intpol(INTERPOLATE);
st.diss2g(true); // Disable short to ground protection. Too many false readings?

View File

@ -58,8 +58,8 @@
#if HAS_TRINAMIC
#include <TMCStepper.h>
#include "../feature/tmc_util.h"
#if TMCSTEPPER_VERSION < 0x000202
#error "Update TMCStepper library to 0.2.2 or newer."
#if TMCSTEPPER_VERSION < 0x000401
#error "Update TMCStepper library to 0.4.1 or newer."
#endif
#define ____TMC_CLASS(MODEL, A, I, E) TMCMarlin<TMC##MODEL##Stepper, A, I, E>