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>
|
|
||
557 |
|
557 |
|
558 |
|
558 |
|
559 |
|
559 |
|
|
560 |
|
|
560 |
|
561 |
|
561 |
|
562 |
|
562 |
|
563 |
|
|
|
||
567 |
|
568 |
|
568 |
|
569 |
|
569 |
|
570 |
|
|
571 |
|
|
|
572 |
|
|
|
573 |
|
|
570 |
|
574 |
|
571 |
|
575 |
|
572 |
|
576 |
|
|
|
||
574 |
|
578 |
|
575 |
|
579 |
|
576 |
|
580 |
|
577 |
|
|
|
578 |
|
|
|
579 |
|
|
|
580 |
|
|
|
581 |
|
|
|
582 |
|
|
|
583 |
|
|
|
584 |
|
|
|
585 |
|
|
|
586 |
|
|
|
587 |
|
|
|
588 |
|
|
|
589 |
|
|
|
590 |
|
|
|
591 |
|
|
|
592 |
|
|
|
593 |
|
|
|
594 |
|
|
|
595 |
|
|
|
596 |
|
|
|
597 |
|
|
|
598 |
|
|
|
599 |
|
|
|
600 |
|
|
|
601 |
|
|
|
|
581 |
|
|
|
582 |
|
|
|
583 |
|
|
|
584 |
|
|
|
585 |
|
|
|
586 |
|
|
|
587 |
|
|
|
588 |
|
|
|
589 |
|
|
|
590 |
|
|
|
591 |
|
|
|
592 |
|
|
|
593 |
|
|
|
594 |
|
|
|
595 |
|
|
|
596 |
|
|
|
597 |
|
|
|
598 |
|
|
|
599 |
|
|
|
600 |
|
|
|
601 |
|
|
|
602 |
|
|
|
603 |
|
|
|
604 |
|
|
|
605 |
|
|
|
606 |
|
|
|
607 |
|
|
|
608 |
|
|
|
609 |
|
|
|
610 |
|
|
602 |
|
611 |
|
|
612 |
|
|
|
613 |
|
|
603 |
|
614 |
|
604 |
|
615 |
|
605 |
|
616 |
|