Skip to content
Commit faccb358 authored by Ian Jackson's avatar Ian Jackson
Browse files

software_endstops: use *_MIN_POS and *_MAX_POS for arcs



If [XYZ]_HOME_POS and [XYZ]_MIN_POS aren't 0, these corrections are
wrong.  Use the same logic as in Marlin.pde:prepare_move: ie, clamp to
[XYZ]_{MIN,MAX}_POS.

While we're here, put this cut-and-paste code in a function
clamp_to_software_endstops.

Signed-off-by: default avatarIan Jackson <ijackson@chiark.greenend.org.uk>
parent 3f15b7c7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment