Allow servo features in combination (#16960)
This commit is contained in:
@ -30,6 +30,12 @@ void GcodeSuite::M281() {
|
||||
if (!parser.seenval('P')) return;
|
||||
const int servo_index = parser.value_int();
|
||||
if (WITHIN(servo_index, 0, NUM_SERVOS - 1)) {
|
||||
#if ENABLED(BLTOUCH)
|
||||
if (servo_index == Z_PROBE_SERVO_NR) {
|
||||
SERIAL_ERROR_MSG("BLTouch angles can't be changed.");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
bool angle_change = false;
|
||||
if (parser.seen('L')) {
|
||||
servo_angles[servo_index][0] = parser.value_int();
|
||||
|
Reference in New Issue
Block a user