|
@@ -294,14 +294,14 @@
|
294
|
294
|
#if X_HAS_STEALTHCHOP || X2_HAS_STEALTHCHOP
|
295
|
295
|
case X_AXIS:
|
296
|
296
|
TERN_(X_HAS_STEALTHCHOP, if (index < 2) TMC_SET_PWMTHRS(X,X));
|
297
|
|
- TERN_(X2_HAS_STEALTHCHOP, if (!(index & 1)) TMC_SET_PWMTHRS(X,X2));
|
|
297
|
+ TERN_(X2_HAS_STEALTHCHOP, if (!index || index == 2) TMC_SET_PWMTHRS(X,X2));
|
298
|
298
|
break;
|
299
|
299
|
#endif
|
300
|
300
|
|
301
|
301
|
#if Y_HAS_STEALTHCHOP || Y2_HAS_STEALTHCHOP
|
302
|
302
|
case Y_AXIS:
|
303
|
303
|
TERN_(Y_HAS_STEALTHCHOP, if (index < 2) TMC_SET_PWMTHRS(Y,Y));
|
304
|
|
- TERN_(Y2_HAS_STEALTHCHOP, if (!(index & 1)) TMC_SET_PWMTHRS(Y,Y2));
|
|
304
|
+ TERN_(Y2_HAS_STEALTHCHOP, if (!index || index == 2) TMC_SET_PWMTHRS(Y,Y2));
|
305
|
305
|
break;
|
306
|
306
|
#endif
|
307
|
307
|
|
|
@@ -499,7 +499,6 @@
|
499
|
499
|
* M914: Set StallGuard sensitivity.
|
500
|
500
|
*/
|
501
|
501
|
void GcodeSuite::M914() {
|
502
|
|
-
|
503
|
502
|
bool report = true;
|
504
|
503
|
const uint8_t index = parser.byteval('I');
|
505
|
504
|
LOOP_NUM_AXES(i) if (parser.seen(AXIS_CHAR(i))) {
|
|
@@ -509,13 +508,13 @@
|
509
|
508
|
#if X_SENSORLESS
|
510
|
509
|
case X_AXIS:
|
511
|
510
|
if (index < 2) stepperX.homing_threshold(value);
|
512
|
|
- TERN_(X2_SENSORLESS, if (!(index & 1)) stepperX2.homing_threshold(value));
|
|
511
|
+ TERN_(X2_SENSORLESS, if (!index || index == 2) stepperX2.homing_threshold(value));
|
513
|
512
|
break;
|
514
|
513
|
#endif
|
515
|
514
|
#if Y_SENSORLESS
|
516
|
515
|
case Y_AXIS:
|
517
|
516
|
if (index < 2) stepperY.homing_threshold(value);
|
518
|
|
- TERN_(Y2_SENSORLESS, if (!(index & 1)) stepperY2.homing_threshold(value));
|
|
517
|
+ TERN_(Y2_SENSORLESS, if (!index || index == 2) stepperY2.homing_threshold(value));
|
519
|
518
|
break;
|
520
|
519
|
#endif
|
521
|
520
|
#if Z_SENSORLESS
|