🎨 Standardize G-code reporting

This commit is contained in:
Scott Lahteine authored and Scott Lahteine committed 2021-10-02 22:31:15 -05:00
1 parent a596faf4e5
commit 6d96c221bd
48 files changed
+1360 -1170

No files matched your search

+12
View File
@@ -66,4 +66,16 @@ void GcodeSuite::M412() {
}
}
void GcodeSuite::M412_report(const bool forReplay/*=true*/) {
report_heading_etc(forReplay, PSTR(STR_FILAMENT_RUNOUT_SENSOR));
SERIAL_ECHOLNPAIR(
" M412 S", runout.enabled
#if HAS_FILAMENT_RUNOUT_DISTANCE
, " D", LINEAR_UNIT(runout.runout_distance())
#endif
, " ; Sensor "
);
serialprintln_onoff(runout.enabled);
}
#endif // HAS_FILAMENT_SENSOR