planner.h: fan speed is used to set integer variables, so no need for long. Basicaly a byte should be enough for all the fan things, as it's 0-255? planner.cpp: Save some float multiplications. We could squeeze out even more by defining feedrate_percentage, saved_feedrate_percentage and flow_percentage as float instead of int. Everytime they are used in the time-critical planner, they are casted to float and multiplied by 0.01. Not done jet, as they are used in LCD menu functions I don't know well enough.
|
|
||
662 |
|
662 |
|
663 |
|
663 |
|
664 |
|
664 |
|
665 |
|
|
|
|
665 |
|
|
666 |
|
666 |
|
667 |
|
667 |
|
668 |
|
668 |
|
|
|
||
699 |
|
699 |
|
700 |
|
700 |
|
701 |
|
701 |
|
702 |
|
|
|
|
702 |
|
|
|
703 |
|
|
703 |
|
704 |
|
704 |
|
705 |
|
705 |
|
|
|
|
706 |
|
|
706 |
|
707 |
|
707 |
|
708 |
|
708 |
|
709 |
|
|
|
||
798 |
|
799 |
|
799 |
|
800 |
|
800 |
|
801 |
|
801 |
|
|
|
|
802 |
|
|
802 |
|
803 |
|
803 |
|
804 |
|
804 |
|
805 |
|
|
|
||
903 |
|
904 |
|
904 |
|
905 |
|
905 |
|
906 |
|
906 |
|
|
|
|
907 |
|
|
907 |
|
908 |
|
908 |
|
909 |
|
909 |
|
910 |
|
|
|
||
117 |
|
117 |
|
118 |
|
118 |
|
119 |
|
119 |
|
120 |
|
|
|
|
120 |
|
|
121 |
|
121 |
|
122 |
|
122 |
|
123 |
|
123 |
|