mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-30 15:26:18 +00:00
Combine if block related to SERVO_ENDSTOPS
This commit is contained in:
parent
0af2a80e06
commit
3b2b2313ff
@ -1677,11 +1677,9 @@ static void homeaxis(AxisEnum axis) {
|
||||
#endif
|
||||
|
||||
#ifdef SERVO_ENDSTOPS
|
||||
if (axis != Z_AXIS) {
|
||||
// Engage Servo endstop if enabled
|
||||
if (servo_endstops[axis] >= 0)
|
||||
servo[servo_endstops[axis]].move(servo_endstop_angles[axis * 2]);
|
||||
}
|
||||
// Engage Servo endstop if enabled
|
||||
if (axis != Z_AXIS && servo_endstops[axis] >= 0)
|
||||
servo[servo_endstops[axis]].move(servo_endstop_angles[axis][0]);
|
||||
#endif
|
||||
|
||||
// Set a flag for Z motor locking
|
||||
|
Loading…
Reference in New Issue
Block a user