🎨 Misc. style adjustments
This commit is contained in:
@@ -98,6 +98,7 @@ void GcodeSuite::M92() {
|
|||||||
void GcodeSuite::M92_report(const bool forReplay/*=true*/, const int8_t e/*=-1*/) {
|
void GcodeSuite::M92_report(const bool forReplay/*=true*/, const int8_t e/*=-1*/) {
|
||||||
report_heading_etc(forReplay, F(STR_STEPS_PER_UNIT));
|
report_heading_etc(forReplay, F(STR_STEPS_PER_UNIT));
|
||||||
#if NUM_AXES
|
#if NUM_AXES
|
||||||
|
#define PRINT_EOL
|
||||||
SERIAL_ECHOPGM_P(LIST_N(DOUBLE(NUM_AXES),
|
SERIAL_ECHOPGM_P(LIST_N(DOUBLE(NUM_AXES),
|
||||||
PSTR(" M92 X"), LINEAR_UNIT(planner.settings.axis_steps_per_mm[X_AXIS]),
|
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]),
|
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
|
#endif
|
||||||
|
|
||||||
#if HAS_EXTRUDERS && DISABLED(DISTINCT_E_FACTORS)
|
#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]));
|
SERIAL_ECHOPGM_P(SP_E_STR, VOLUMETRIC_UNIT(planner.settings.axis_steps_per_mm[E_AXIS]));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if NUM_AXES || (HAS_EXTRUDERS && DISABLED(DISTINCT_E_FACTORS))
|
if (ENABLED(PRINT_EOL)) SERIAL_EOL();
|
||||||
SERIAL_EOL();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if ENABLED(DISTINCT_E_FACTORS)
|
#if ENABLED(DISTINCT_E_FACTORS)
|
||||||
for (uint8_t i = 0; i < E_STEPPERS; ++i) {
|
for (uint8_t i = 0; i < E_STEPPERS; ++i) {
|
||||||
|
@@ -3713,9 +3713,7 @@ void MarlinSettings::reset() {
|
|||||||
//
|
//
|
||||||
// M92 Steps per Unit
|
// M92 Steps per Unit
|
||||||
//
|
//
|
||||||
#if ENABLED(EDITABLE_STEPS_PER_UNIT)
|
TERN_(EDITABLE_STEPS_PER_UNIT, gcode.M92_report(forReplay));
|
||||||
gcode.M92_report(forReplay);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// M203 Maximum feedrates (units/s)
|
// M203 Maximum feedrates (units/s)
|
||||||
|
Reference in New Issue
Block a user