|
@ -516,13 +516,13 @@ namespace ExtUI { |
|
|
|
|
|
|
|
|
int getTMCBumpSensitivity(const axis_t axis) { |
|
|
int getTMCBumpSensitivity(const axis_t axis) { |
|
|
switch (axis) { |
|
|
switch (axis) { |
|
|
#if X_SENSORLESS && AXIS_HAS_STALLGUARD(X) |
|
|
#if X_SENSORLESS |
|
|
case X: return stepperX.homing_threshold(); |
|
|
case X: return stepperX.homing_threshold(); |
|
|
#endif |
|
|
#endif |
|
|
#if Y_SENSORLESS && AXIS_HAS_STALLGUARD(Y) |
|
|
#if Y_SENSORLESS |
|
|
case Y: return stepperY.homing_threshold(); |
|
|
case Y: return stepperY.homing_threshold(); |
|
|
#endif |
|
|
#endif |
|
|
#if Z_SENSORLESS && AXIS_HAS_STALLGUARD(Z) |
|
|
#if Z_SENSORLESS |
|
|
case Z: return stepperZ.homing_threshold(); |
|
|
case Z: return stepperZ.homing_threshold(); |
|
|
#endif |
|
|
#endif |
|
|
default: return 0; |
|
|
default: return 0; |
|
@ -531,18 +531,16 @@ namespace ExtUI { |
|
|
|
|
|
|
|
|
void setTMCBumpSensitivity(const float value, const axis_t axis) { |
|
|
void setTMCBumpSensitivity(const float value, const axis_t axis) { |
|
|
switch (axis) { |
|
|
switch (axis) { |
|
|
#if X_SENSORLESS && AXIS_HAS_STALLGUARD(X) |
|
|
#if X_SENSORLESS || Y_SENSORLESS || Z_SENSORLESS |
|
|
|
|
|
#if X_SENSORLESS |
|
|
case X: stepperX.homing_threshold(value); break; |
|
|
case X: stepperX.homing_threshold(value); break; |
|
|
#else |
|
|
|
|
|
UNUSED(value); |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
#if Y_SENSORLESS && AXIS_HAS_STALLGUARD(Y) |
|
|
#if Y_SENSORLESS |
|
|
case Y: stepperY.homing_threshold(value); break; |
|
|
case Y: stepperY.homing_threshold(value); break; |
|
|
#else |
|
|
|
|
|
UNUSED(value); |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
#if Z_SENSORLESS && AXIS_HAS_STALLGUARD(Z) |
|
|
#if Z_SENSORLESS |
|
|
case Z: stepperZ.homing_threshold(value); break; |
|
|
case Z: stepperZ.homing_threshold(value); break; |
|
|
|
|
|
#endif |
|
|
#else |
|
|
#else |
|
|
UNUSED(value); |
|
|
UNUSED(value); |
|
|
#endif |
|
|
#endif |
|
|