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 16:41:14 +0000 (17:41 +0100)
commit75f381b9093a96a67f8aa4fb0a668a4cf2e048e8
tree75d4a31db3e7cb32ded340b9de197cee58e943b7
parenta18cc767374a4f34713ab94fc092449a1422a821
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