Browse Source
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>pull/1/head
Ian Jackson
12 years ago
3 changed files with 15 additions and 18 deletions
Loading…
Reference in new issue