1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-12-03 17:21:29 +00:00

🐛 Fix TMC5160 + Input Shaping overcurrent (#25050)

This commit is contained in:
tombrazier 2022-12-04 02:14:31 +00:00 committed by Scott Lahteine
parent c3090bd4e8
commit df2a2488a8

View File

@ -1679,12 +1679,14 @@ void Stepper::pulse_phase_isr() {
// the TMC2208 / TMC2225 shutdown bug (#16076), add a half step hysteresis // the TMC2208 / TMC2225 shutdown bug (#16076), add a half step hysteresis
// in each direction. This results in the position being off by half an // in each direction. This results in the position being off by half an
// average half step during travel but correct at the end of each segment. // average half step during travel but correct at the end of each segment.
#if AXIS_DRIVER_TYPE_X(TMC2208) || AXIS_DRIVER_TYPE_X(TMC2208_STANDALONE) #if AXIS_DRIVER_TYPE_X(TMC2208) || AXIS_DRIVER_TYPE_X(TMC2208_STANDALONE) || \
AXIS_DRIVER_TYPE_X(TMC5160) || AXIS_DRIVER_TYPE_X(TMC5160_STANDALONE)
#define HYSTERESIS_X 64 #define HYSTERESIS_X 64
#else #else
#define HYSTERESIS_X 0 #define HYSTERESIS_X 0
#endif #endif
#if AXIS_DRIVER_TYPE_Y(TMC2208) || AXIS_DRIVER_TYPE_Y(TMC2208_STANDALONE) #if AXIS_DRIVER_TYPE_Y(TMC2208) || AXIS_DRIVER_TYPE_Y(TMC2208_STANDALONE) || \
AXIS_DRIVER_TYPE_Y(TMC5160) || AXIS_DRIVER_TYPE_Y(TMC5160_STANDALONE)
#define HYSTERESIS_Y 64 #define HYSTERESIS_Y 64
#else #else
#define HYSTERESIS_Y 0 #define HYSTERESIS_Y 0