From 17e1eec21ecc2c73e8f7e67110fee7c384fa44df Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 17 Jul 2018 16:51:51 -0500 Subject: [PATCH] Make sure linear units are initialized Based on #11295 Co-Authored-By: Giuliano --- Marlin/parser.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Marlin/parser.h b/Marlin/parser.h index 949c489cd0f7..88e46d2b7108 100644 --- a/Marlin/parser.h +++ b/Marlin/parser.h @@ -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();