Make sure linear units are initialized

Based on #11295

Co-Authored-By: Giuliano <gmagician@users.noreply.github.com>
This commit is contained in:
Scott Lahteine 2018-07-17 16:51:51 -05:00
parent 58775cc694
commit 17e1eec21e

View File

@ -93,6 +93,12 @@ public:
void debug();
#endif
GCodeParser() {
#if ENABLED(INCH_MODE_SUPPORT)
set_input_linear_units(LINEARUNIT_MM);
#endif
}
// Reset is done before parsing
static void reset();