Skip to content

Commit

Permalink
🩹 Fix settings G21 report (MarlinFirmware#23338)
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot authored Dec 23, 2021
1 parent c80ef71 commit 1b876c1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Marlin/src/module/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3171,12 +3171,13 @@ void MarlinSettings::reset() {
// Announce current units, in case inches are being displayed
//
CONFIG_ECHO_HEADING("Linear Units");
CONFIG_ECHO_START();
#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
SERIAL_ECHO_MSG(" G21 ;");
SERIAL_ECHOPGM(" G21 ;");
#endif
gcode.say_units();
gcode.say_units(); // " (in/mm)"

//
// M149 Temperature units
Expand Down

0 comments on commit 1b876c1

Please sign in to comment.