Skip to content

Commit

Permalink
🎨 Misc. style adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jan 10, 2024
1 parent 854f331 commit f44f9eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Marlin/src/gcode/config/M92.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ void GcodeSuite::M92() {
void GcodeSuite::M92_report(const bool forReplay/*=true*/, const int8_t e/*=-1*/) {
report_heading_etc(forReplay, F(STR_STEPS_PER_UNIT));
#if NUM_AXES
#define PRINT_EOL
SERIAL_ECHOPGM_P(LIST_N(DOUBLE(NUM_AXES),
PSTR(" M92 X"), LINEAR_UNIT(planner.settings.axis_steps_per_mm[X_AXIS]),
SP_Y_STR, LINEAR_UNIT(planner.settings.axis_steps_per_mm[Y_AXIS]),
Expand All @@ -112,12 +113,11 @@ void GcodeSuite::M92_report(const bool forReplay/*=true*/, const int8_t e/*=-1*/
#endif

#if HAS_EXTRUDERS && DISABLED(DISTINCT_E_FACTORS)
#define PRINT_EOL
SERIAL_ECHOPGM_P(SP_E_STR, VOLUMETRIC_UNIT(planner.settings.axis_steps_per_mm[E_AXIS]));
#endif

#if NUM_AXES || (HAS_EXTRUDERS && DISABLED(DISTINCT_E_FACTORS))
SERIAL_EOL();
#endif
if (ENABLED(PRINT_EOL)) SERIAL_EOL();

#if ENABLED(DISTINCT_E_FACTORS)
for (uint8_t i = 0; i < E_STEPPERS; ++i) {
Expand Down
4 changes: 1 addition & 3 deletions Marlin/src/module/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3713,9 +3713,7 @@ void MarlinSettings::reset() {
//
// M92 Steps per Unit
//
#if ENABLED(EDITABLE_STEPS_PER_UNIT)
gcode.M92_report(forReplay);
#endif
TERN_(EDITABLE_STEPS_PER_UNIT, gcode.M92_report(forReplay));

//
// M203 Maximum feedrates (units/s)
Expand Down

0 comments on commit f44f9eb

Please sign in to comment.