Implement soft_endstops_enabled for clamping
This commit is contained in:
parent
e4649c9044
commit
d01b915085
2 changed files with 15 additions and 3 deletions
|
|
@ -8982,6 +8982,7 @@ void ok_to_send() {
|
|||
* Constrain the given coordinates to the software endstops.
|
||||
*/
|
||||
void clamp_to_software_endstops(float target[XYZ]) {
|
||||
if (!soft_endstops_enabled) return;
|
||||
#if ENABLED(min_software_endstops)
|
||||
NOLESS(target[X_AXIS], soft_endstop_min[X_AXIS]);
|
||||
NOLESS(target[Y_AXIS], soft_endstop_min[Y_AXIS]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue