|
@@ -85,7 +85,7 @@ public:
|
85
|
85
|
#endif
|
86
|
86
|
|
87
|
87
|
#if ENABLED(DEBUG_GCODE_PARSER)
|
88
|
|
- void debug();
|
|
88
|
+ static void debug();
|
89
|
89
|
#endif
|
90
|
90
|
|
91
|
91
|
// Reset is done before parsing
|
|
@@ -217,6 +217,9 @@ public:
|
217
|
217
|
|
218
|
218
|
#if ENABLED(INCH_MODE_SUPPORT)
|
219
|
219
|
|
|
220
|
+ // Init linear units by constructor
|
|
221
|
+ GCodeParser() { set_input_linear_units(LINEARUNIT_MM); }
|
|
222
|
+
|
220
|
223
|
inline static void set_input_linear_units(const LinearUnit units) {
|
221
|
224
|
switch (units) {
|
222
|
225
|
case LINEARUNIT_INCH:
|