🎨 Standardize G-code reporting
This commit is contained in:
@@ -144,4 +144,17 @@ void GcodeSuite::M900() {
|
||||
|
||||
}
|
||||
|
||||
void GcodeSuite::M900_report(const bool forReplay/*=true*/) {
|
||||
report_heading(forReplay, PSTR(STR_LINEAR_ADVANCE));
|
||||
#if EXTRUDERS < 2
|
||||
report_echo_start(forReplay);
|
||||
SERIAL_ECHOLNPAIR(" M900 K", planner.extruder_advance_K[0]);
|
||||
#else
|
||||
LOOP_L_N(i, EXTRUDERS) {
|
||||
report_echo_start(forReplay);
|
||||
SERIAL_ECHOLNPAIR(" M900 T", i, " K", planner.extruder_advance_K[i]);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif // LIN_ADVANCE
|
||||
|
||||
Reference in New Issue
Block a user