Skip to content

Commit a471d73

Browse files
committed
Fix wrong M592 report command code, report if no parameters.
1 parent 3019af1 commit a471d73

File tree

1 file changed

+3
-1
lines changed
  • Marlin/src/gcode/feature/nonlinear

1 file changed

+3
-1
lines changed

Marlin/src/gcode/feature/nonlinear/M592.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
void GcodeSuite::M592_report(const bool forReplay/*=true*/) {
3131
report_heading(forReplay, F(STR_NONLINEAR_EXTRUSION));
32-
SERIAL_ECHOLNPGM(" M593 A", stepper.ne.A, " B", stepper.ne.B, " C", stepper.ne.C);
32+
SERIAL_ECHOLNPGM(" M592 A", stepper.ne.A, " B", stepper.ne.B, " C", stepper.ne.C);
3333
}
3434

3535
/**
@@ -43,6 +43,8 @@ void GcodeSuite::M592_report(const bool forReplay/*=true*/) {
4343
* Only adjusts forward extrusions, since those are the ones affected by backpressure.
4444
*/
4545
void GcodeSuite::M592() {
46+
if (!parser.seen_any()) return M592_report();
47+
4648
if (parser.seenval('A')) stepper.ne.A = parser.value_float();
4749
if (parser.seenval('B')) stepper.ne.B = parser.value_float();
4850
if (parser.seenval('C')) stepper.ne.C = parser.value_float();

0 commit comments

Comments
 (0)