🎨 Standardize G-code reporting
This commit is contained in:
committed by
Scott Lahteine
parent
a596faf4e5
commit
6d96c221bd
@@ -33,6 +33,13 @@ void GcodeSuite::M149() {
|
||||
if (parser.seenval('C')) parser.set_input_temp_units(TEMPUNIT_C);
|
||||
else if (parser.seenval('K')) parser.set_input_temp_units(TEMPUNIT_K);
|
||||
else if (parser.seenval('F')) parser.set_input_temp_units(TEMPUNIT_F);
|
||||
else M149_report();
|
||||
}
|
||||
|
||||
void GcodeSuite::M149_report(const bool forReplay/*=true*/) {
|
||||
report_heading_etc(forReplay, PSTR(STR_TEMPERATURE_UNITS));
|
||||
SERIAL_ECHOPAIR(" M149 ", AS_CHAR(parser.temp_units_code()), " ; Units in ");
|
||||
SERIAL_ECHOLNPGM_P(parser.temp_units_name());
|
||||
}
|
||||
|
||||
#endif // TEMPERATURE_UNITS_SUPPORT
|
||||
|
Reference in New Issue
Block a user