mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-01-19 08:08:25 +00:00
🐛 Fix TMC5160 + Input Shaping overcurrent (#25050)
This commit is contained in:
parent
d46e87b00e
commit
5c3d87a951
1 changed files with 4 additions and 2 deletions
|
@ -1679,12 +1679,14 @@ void Stepper::pulse_phase_isr() {
|
|||
// the TMC2208 / TMC2225 shutdown bug (#16076), add a half step hysteresis
|
||||
// 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.
|
||||
#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
|
||||
#else
|
||||
#define HYSTERESIS_X 0
|
||||
#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
|
||||
#else
|
||||
#define HYSTERESIS_Y 0
|
||||
|
|
Loading…
Reference in a new issue