Skip to content

Commit

Permalink
🩹 Fix M592 report (#26680)
Browse files Browse the repository at this point in the history
  • Loading branch information
vovodroid authored Jan 21, 2024
1 parent 624226c commit 80cd89d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Marlin/src/gcode/feature/nonlinear/M592.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand All @@ -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();
Expand Down

0 comments on commit 80cd89d

Please sign in to comment.