🩹 Fix M592 report (#26680)

This commit is contained in:
Vovodroid 2024-01-21 13:11:03 +02:00 committed by GitHub
parent 624226c91d
commit 80cd89d8f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,7 +29,7 @@
void GcodeSuite::M592_report(const bool forReplay/*=true*/) { void GcodeSuite::M592_report(const bool forReplay/*=true*/) {
report_heading(forReplay, F(STR_NONLINEAR_EXTRUSION)); 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. * Only adjusts forward extrusions, since those are the ones affected by backpressure.
*/ */
void GcodeSuite::M592() { void GcodeSuite::M592() {
if (!parser.seen_any()) return M592_report();
if (parser.seenval('A')) stepper.ne.A = parser.value_float(); if (parser.seenval('A')) stepper.ne.A = parser.value_float();
if (parser.seenval('B')) stepper.ne.B = parser.value_float(); if (parser.seenval('B')) stepper.ne.B = parser.value_float();
if (parser.seenval('C')) stepper.ne.C = parser.value_float(); if (parser.seenval('C')) stepper.ne.C = parser.value_float();