|
|
|
@ -268,6 +268,7 @@ void GcodeSuite::M912() {
|
|
|
|
|
const int8_t value = (int8_t)constrain(parser.value_int(), -64, 63);
|
|
|
|
|
report = false;
|
|
|
|
|
switch (i) {
|
|
|
|
|
#if X_SENSORLESS
|
|
|
|
|
case X_AXIS:
|
|
|
|
|
#if ENABLED(X_IS_TMC2130) || ENABLED(IS_TRAMS)
|
|
|
|
|
if (index == 0) TMC_SET_SGT(X);
|
|
|
|
@ -276,6 +277,8 @@ void GcodeSuite::M912() {
|
|
|
|
|
if (index == 1) TMC_SET_SGT(X2);
|
|
|
|
|
#endif
|
|
|
|
|
break;
|
|
|
|
|
#endif
|
|
|
|
|
#if Y_SENSORLESS
|
|
|
|
|
case Y_AXIS:
|
|
|
|
|
#if ENABLED(Y_IS_TMC2130) || ENABLED(IS_TRAMS)
|
|
|
|
|
if (index == 0) TMC_SET_SGT(Y);
|
|
|
|
@ -284,6 +287,8 @@ void GcodeSuite::M912() {
|
|
|
|
|
if (index == 1) TMC_SET_SGT(Y2);
|
|
|
|
|
#endif
|
|
|
|
|
break;
|
|
|
|
|
#endif
|
|
|
|
|
#if Z_SENSORLESS
|
|
|
|
|
case Z_AXIS:
|
|
|
|
|
#if ENABLED(Z_IS_TMC2130) || ENABLED(IS_TRAMS)
|
|
|
|
|
if (index == 0) TMC_SET_SGT(Z);
|
|
|
|
@ -292,10 +297,12 @@ void GcodeSuite::M912() {
|
|
|
|
|
if (index == 1) TMC_SET_SGT(Z2);
|
|
|
|
|
#endif
|
|
|
|
|
break;
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (report) LOOP_XYZ(i) switch (i) {
|
|
|
|
|
#if X_SENSORLESS
|
|
|
|
|
case X_AXIS:
|
|
|
|
|
#if ENABLED(X_IS_TMC2130) || ENABLED(IS_TRAMS)
|
|
|
|
|
TMC_SAY_SGT(X);
|
|
|
|
@ -304,6 +311,8 @@ void GcodeSuite::M912() {
|
|
|
|
|
TMC_SAY_SGT(X2);
|
|
|
|
|
#endif
|
|
|
|
|
break;
|
|
|
|
|
#endif
|
|
|
|
|
#if Y_SENSORLESS
|
|
|
|
|
case Y_AXIS:
|
|
|
|
|
#if ENABLED(Y_IS_TMC2130) || ENABLED(IS_TRAMS)
|
|
|
|
|
TMC_SAY_SGT(Y);
|
|
|
|
@ -312,6 +321,8 @@ void GcodeSuite::M912() {
|
|
|
|
|
TMC_SAY_SGT(Y2);
|
|
|
|
|
#endif
|
|
|
|
|
break;
|
|
|
|
|
#endif
|
|
|
|
|
#if Z_SENSORLESS
|
|
|
|
|
case Z_AXIS:
|
|
|
|
|
#if ENABLED(Z_IS_TMC2130) || ENABLED(IS_TRAMS)
|
|
|
|
|
TMC_SAY_SGT(Z);
|
|
|
|
@ -320,6 +331,7 @@ void GcodeSuite::M912() {
|
|
|
|
|
TMC_SAY_SGT(Z2);
|
|
|
|
|
#endif
|
|
|
|
|
break;
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endif // SENSORLESS_HOMING
|
|
|
|
|