Skip to content
Commit 1dba212e authored by Ian Jackson's avatar Ian Jackson
Browse files

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: default avatarIan Jackson <ijackson@chiark.greenend.org.uk>
parent 7bb326d3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment