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>
Sat, 11 Aug 2012 00:35:52 +0000 (01:35 +0100)
commite83a4b447cd8a74d230e57bef4355d91d6b899fe
tree3ab4763ae3deebf76bc615f517ca3bef62175fed
parenta31f275d62753d55119658c98c39b59bc5efa8b2
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