Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Marlin/src/gcode/parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class GCodeParser {
#endif

#if ENABLED(DEBUG_GCODE_PARSER)
void debug();
static void debug();
#endif

// Reset is done before parsing
Expand Down Expand Up @@ -217,6 +217,9 @@ class GCodeParser {

#if ENABLED(INCH_MODE_SUPPORT)

// Init linear units by constructor
GCodeParser() { set_input_linear_units(LINEARUNIT_MM); }

inline static void set_input_linear_units(const LinearUnit units) {
switch (units) {
case LINEARUNIT_INCH:
Expand Down