Skip to content

Commit

Permalink
Make sure linear units are initialized
Browse files Browse the repository at this point in the history
Based on #11295

Co-Authored-By: Giuliano <[email protected]>
  • Loading branch information
thinkyhead and GMagician committed Jul 17, 2018
1 parent 58775cc commit 17e1eec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Marlin/parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ class GCodeParser {
void debug();
#endif

GCodeParser() {
#if ENABLED(INCH_MODE_SUPPORT)
set_input_linear_units(LINEARUNIT_MM);
#endif
}

// Reset is done before parsing
static void reset();

Expand Down

0 comments on commit 17e1eec

Please sign in to comment.