chiark / gitweb /
HOMEAXIS: make into a function
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 8 Aug 2012 17:30:34 +0000 (18:30 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 10 Aug 2012 17:10:25 +0000 (18:10 +0100)
commitd969332eca2f45463ace33a1bc91723bf8cb8ff3
tree1e45527396d18a734fba0181fbbfbf3709b52c95
parent6b046bd18df9dd39bf5ed13f266918c34b5ab598
HOMEAXIS: make into a function

Replace the large macro HOMEAXIS with a function.  This avoids the
compiler generating three copies of largely identical code.  The
saving is 724 bytes of program memory.

We make use of XYZ_CONSTS_FROM_CONFIG to provide convenient
array-shaped access to MAX_LENGTH, HOME_RETRACT_MM and HOME_DIR.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Marlin/Marlin.pde