🩹 Fix M592 report (#26680)
This commit is contained in:
parent
624226c91d
commit
80cd89d8f7
|
@ -29,7 +29,7 @@
|
|||
|
||||
void GcodeSuite::M592_report(const bool forReplay/*=true*/) {
|
||||
report_heading(forReplay, F(STR_NONLINEAR_EXTRUSION));
|
||||
SERIAL_ECHOLNPGM(" M593 A", stepper.ne.A, " B", stepper.ne.B, " C", stepper.ne.C);
|
||||
SERIAL_ECHOLNPGM(" M592 A", stepper.ne.A, " B", stepper.ne.B, " C", stepper.ne.C);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -43,6 +43,8 @@ void GcodeSuite::M592_report(const bool forReplay/*=true*/) {
|
|||
* Only adjusts forward extrusions, since those are the ones affected by backpressure.
|
||||
*/
|
||||
void GcodeSuite::M592() {
|
||||
if (!parser.seen_any()) return M592_report();
|
||||
|
||||
if (parser.seenval('A')) stepper.ne.A = parser.value_float();
|
||||
if (parser.seenval('B')) stepper.ne.B = parser.value_float();
|
||||
if (parser.seenval('C')) stepper.ne.C = parser.value_float();
|
||||
|
|
Loading…
Reference in a new issue