This is an update of MarlinDev PR #196. G20/21: support for switching input units between millimeters and inches. M149: support for changing input temperature units. In support of these changes, code_value() and code_value_short() are replaced with an array of functions which handle converting to the proper types and/or units.
|
|
||
749 |
|
749 |
|
750 |
|
750 |
|
751 |
|
751 |
|
|
752 |
|
|
|
753 |
|
|
|
754 |
|
|
|
755 |
|
|
|
756 |
|
|
|
757 |
|
|
|
758 |
|
|
|
759 |
|
|
|
760 |
|
|
|
761 |
|
|
752 |
|
762 |
|
753 |
|
763 |
|
754 |
|
764 |
|
|
|
||
51 |
|
51 |
|
52 |
|
52 |
|
53 |
|
53 |
|
54 |
|
|
|
55 |
|
|
|
|
54 |
|
|
56 |
|
55 |
|
57 |
|
56 |
|
58 |
|
57 |
|
|
|
||
177 |
|
176 |
|
178 |
|
177 |
|
179 |
|
178 |
|
180 |
|
|
|
|
179 |
|
|
181 |
|
180 |
|
182 |
|
181 |
|
183 |
|
182 |
|
|
|
||
217 |
|
217 |
|
218 |
|
218 |
|
219 |
|
219 |
|
|
220 |
|
|
|
221 |
|
|
|
222 |
|
|
220 |
|
223 |
|
221 |
|
224 |
|
222 |
|
225 |
|
|
|
||
288 |
|
291 |
|
289 |
|
292 |
|
290 |
|
293 |
|
291 |
|
|
|
|
294 |
|
|
|
295 |
|
|
292 |
|
296 |
|
293 |
|
|
|
|
297 |
|
|
|
298 |
|
|
|
299 |
|
|
|
300 |
|
|
|
301 |
|
|
|
302 |
|
|
|
303 |
|
|
|
304 |
|
|
|
305 |
|
|
|
306 |
|
|
|
307 |
|
|
294 |
|
308 |
|
295 |
|
309 |
|
296 |
|
310 |
|
|
|
||
732 |
|
732 |
|
733 |
|
733 |
|
734 |
|
734 |
|
|
735 |
|
|
|
736 |
|
|
|
737 |
|
|
|
738 |
|
|
|
739 |
|
|
|
740 |
|
|
|
741 |
|
|
|
742 |
|
|
|
743 |
|
|
|
744 |
|
|
735 |
|
745 |
|
736 |
|
746 |
|
737 |
|
747 |
|
|
|
||
730 |
|
730 |
|
731 |
|
731 |
|
732 |
|
732 |
|
|
733 |
|
|
|
734 |
|
|
|
735 |
|
|
|
736 |
|
|
|
737 |
|
|
|
738 |
|
|
|
739 |
|
|
|
740 |
|
|
|
741 |
|
|
|
742 |
|
|
733 |
|
743 |
|
734 |
|
744 |
|
735 |
|
745 |
|
|
|
||
741 |
|
741 |
|
742 |
|
742 |
|
743 |
|
743 |
|
|
744 |
|
|
|
745 |
|
|
|
746 |
|
|
|
747 |
|
|
|
748 |
|
|
|
749 |
|
|
|
750 |
|
|
|
751 |
|
|
|
752 |
|
|
|
753 |
|
|
744 |
|
754 |
|
745 |
|
755 |
|
746 |
|
756 |
|
|
|
||
743 |
|
743 |
|
744 |
|
744 |
|
745 |
|
745 |
|
|
746 |
|
|
|
747 |
|
|
|
748 |
|
|
|
749 |
|
|
|
750 |
|
|
|
751 |
|
|
|
752 |
|
|
|
753 |
|
|
|
754 |
|
|
|
755 |
|
|
746 |
|
756 |
|
747 |
|
757 |
|
748 |
|
758 |
|
|
|
||
766 |
|
766 |
|
767 |
|
767 |
|
768 |
|
768 |
|
|
769 |
|
|
|
770 |
|
|
|
771 |
|
|
|
772 |
|
|
|
773 |
|
|
|
774 |
|
|
|
775 |
|
|
|
776 |
|
|
|
777 |
|
|
|
778 |
|
|
769 |
|
779 |
|
770 |
|
780 |
|
771 |
|
781 |
|
|
|
||
749 |
|
749 |
|
750 |
|
750 |
|
751 |
|
751 |
|
|
752 |
|
|
|
753 |
|
|
|
754 |
|
|
|
755 |
|
|
|
756 |
|
|
|
757 |
|
|
|
758 |
|
|
|
759 |
|
|
|
760 |
|
|
|
761 |
|
|
752 |
|
762 |
|
753 |
|
763 |
|
754 |
|
764 |
|
|
|
||
744 |
|
744 |
|
745 |
|
745 |
|
746 |
|
746 |
|
|
747 |
|
|
|
748 |
|
|
|
749 |
|
|
|
750 |
|
|
|
751 |
|
|
|
752 |
|
|
|
753 |
|
|
|
754 |
|
|
|
755 |
|
|
|
756 |
|
|
747 |
|
757 |
|
748 |
|
758 |
|
749 |
|
759 |
|
|
|
||
757 |
|
757 |
|
758 |
|
758 |
|
759 |
|
759 |
|
|
760 |
|
|
|
761 |
|
|
|
762 |
|
|
|
763 |
|
|
|
764 |
|
|
|
765 |
|
|
|
766 |
|
|
|
767 |
|
|
|
768 |
|
|
|
769 |
|
|
760 |
|
770 |
|
761 |
|
771 |
|
762 |
|
772 |
|
|
|
||
770 |
|
770 |
|
771 |
|
771 |
|
772 |
|
772 |
|
|
773 |
|
|
|
774 |
|
|
|
775 |
|
|
|
776 |
|
|
|
777 |
|
|
|
778 |
|
|
|
779 |
|
|
|
780 |
|
|
|
781 |
|
|
|
782 |
|
|
773 |
|
783 |
|
774 |
|
784 |
|
775 |
|
785 |
|
|
|
||
741 |
|
741 |
|
742 |
|
742 |
|
743 |
|
743 |
|
|
744 |
|
|
|
745 |
|
|
|
746 |
|
|
|
747 |
|
|
|
748 |
|
|
|
749 |
|
|
|
750 |
|
|
|
751 |
|
|
|
752 |
|
|
|
753 |
|
|
744 |
|
754 |
|
745 |
|
755 |
|
746 |
|
756 |
|
|
|
||
749 |
|
749 |
|
750 |
|
750 |
|
751 |
|
751 |
|
|
752 |
|
|
|
753 |
|
|
|
754 |
|
|
|
755 |
|
|
|
756 |
|
|
|
757 |
|
|
|
758 |
|
|
|
759 |
|
|
|
760 |
|
|
|
761 |
|
|
752 |
|
762 |
|
753 |
|
763 |
|
754 |
|
764 |
|
|
|
||
838 |
|
838 |
|
839 |
|
839 |
|
840 |
|
840 |
|
|
841 |
|
|
|
842 |
|
|
|
843 |
|
|
|
844 |
|
|
|
845 |
|
|
|
846 |
|
|
|
847 |
|
|
|
848 |
|
|
|
849 |
|
|
|
850 |
|
|
841 |
|
851 |
|
842 |
|
852 |
|
843 |
|
853 |
|
|
|
||
832 |
|
832 |
|
833 |
|
833 |
|
834 |
|
834 |
|
|
835 |
|
|
|
836 |
|
|
|
837 |
|
|
|
838 |
|
|
|
839 |
|
|
|
840 |
|
|
|
841 |
|
|
|
842 |
|
|
|
843 |
|
|
|
844 |
|
|
835 |
|
845 |
|
836 |
|
846 |
|
837 |
|
847 |
|
|
|
||
835 |
|
835 |
|
836 |
|
836 |
|
837 |
|
837 |
|
|
838 |
|
|
|
839 |
|
|
|
840 |
|
|
|
841 |
|
|
|
842 |
|
|
|
843 |
|
|
|
844 |
|
|
|
845 |
|
|
|
846 |
|
|
|
847 |
|
|
838 |
|
848 |
|
839 |
|
849 |
|
840 |
|
850 |
|
|
|
||
835 |
|
835 |
|
836 |
|
836 |
|
837 |
|
837 |
|
|
838 |
|
|
|
839 |
|
|
|
840 |
|
|
|
841 |
|
|
|
842 |
|
|
|
843 |
|
|
|
844 |
|
|
|
845 |
|
|
|
846 |
|
|
|
847 |
|
|
838 |
|
848 |
|
839 |
|
849 |
|
840 |
|
850 |
|
|
|
||
837 |
|
837 |
|
838 |
|
838 |
|
839 |
|
839 |
|
|
840 |
|
|
|
841 |
|
|
|
842 |
|
|
|
843 |
|
|
|
844 |
|
|
|
845 |
|
|
|
846 |
|
|
|
847 |
|
|
|
848 |
|
|
|
849 |
|
|
840 |
|
850 |
|
841 |
|
851 |
|
842 |
|
852 |
|
|
|
||
752 |
|
752 |
|
753 |
|
753 |
|
754 |
|
754 |
|
|
755 |
|
|
|
756 |
|
|
|
757 |
|
|
|
758 |
|
|
|
759 |
|
|
|
760 |
|
|
|
761 |
|
|
|
762 |
|
|
|
763 |
|
|
|
764 |
|
|
755 |
|
765 |
|
756 |
|
766 |
|
757 |
|
767 |
|
|
|
||
743 |
|
743 |
|
744 |
|
744 |
|
745 |
|
745 |
|
|
746 |
|
|
|
747 |
|
|
|
748 |
|
|
|
749 |
|
|
|
750 |
|
|
|
751 |
|
|
|
752 |
|
|
|
753 |
|
|
|
754 |
|
|
|
755 |
|
|
746 |
|
756 |
|
747 |
|
757 |
|
748 |
|
758 |
|
|
|
||
1155 |
|
1155 |
|
1156 |
|
1156 |
|
1157 |
|
1157 |
|
1158 |
|
|
|
1159 |
|
|
|
1160 |
|
|
|
|
1158 |
|
|
|
1159 |
|
|
|
1160 |
|
|
1161 |
|
1161 |
|
1162 |
|
1162 |
|
1163 |
|
1163 |
|