Ian Jackson faccb35850 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: Ian Jackson <ijackson@chiark.greenend.org.uk>
2012-08-10 19:36:30 +01:00
..
2012-02-23 18:50:05 +01:00
2012-06-02 20:44:17 +02:00
2011-08-12 22:28:35 +02:00
2011-08-12 22:28:35 +02:00
2012-06-02 20:44:17 +02:00
2012-02-09 19:27:45 +01:00
2012-02-09 19:27:45 +01:00
2012-06-11 17:33:42 +02:00
2012-03-11 12:25:04 +01:00
2012-07-14 17:25:35 +03:00
2011-12-12 20:35:46 +01:00
2012-06-02 20:44:17 +02:00
2012-06-11 17:33:42 +02:00
2012-06-02 20:44:17 +02:00