🎨 Misc. style adjustments
This commit is contained in:
parent
854f3315af
commit
f44f9eb9f8
|
@ -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]),
|
||||
|
@ -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) {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue