Browse Source

🩹 Fix settings G21 report (#23338)

vanilla_fb_2.0.x
Tanguy Pruvot 3 years ago
committed by Scott Lahteine
parent
commit
cc4578a3d3
  1. 7
      Marlin/src/module/settings.cpp

7
Marlin/src/module/settings.cpp

@ -3065,12 +3065,13 @@ void MarlinSettings::reset() {
// Announce current units, in case inches are being displayed // Announce current units, in case inches are being displayed
// //
CONFIG_ECHO_HEADING("Linear Units"); CONFIG_ECHO_HEADING("Linear Units");
CONFIG_ECHO_START();
#if ENABLED(INCH_MODE_SUPPORT) #if ENABLED(INCH_MODE_SUPPORT)
SERIAL_ECHO_MSG(" G2", AS_DIGIT(parser.linear_unit_factor == 1.0), " ;"); SERIAL_ECHOPGM(" G2", AS_DIGIT(parser.linear_unit_factor == 1.0), " ;");
#else #else
SERIAL_ECHO_MSG(" G21 ;"); SERIAL_ECHOPGM(" G21 ;");
#endif #endif
gcode.say_units(); gcode.say_units(); // " (in/mm)"
// //
// M149 Temperature units // M149 Temperature units

Loading…
Cancel
Save