🎨 Fewer serial macros

This commit is contained in:
Scott Lahteine
2021-09-09 04:57:05 -05:00
committed by Scott Lahteine
parent 6d96c221bd
commit b661795ae5
159 changed files with 1002 additions and 1014 deletions

View File

@ -64,7 +64,7 @@ void GcodeSuite::M145_report(const bool forReplay/*=true*/) {
report_heading(forReplay, PSTR(STR_MATERIAL_HEATUP));
LOOP_L_N(i, PREHEAT_COUNT) {
report_echo_start(forReplay);
SERIAL_ECHOLNPAIR_P(
SERIAL_ECHOLNPGM_P(
PSTR(" M145 S"), i
#if HAS_HOTEND
, PSTR(" H"), parser.to_temp_units(ui.material_preset[i].hotend_temp)

View File

@ -38,7 +38,7 @@ void GcodeSuite::M250() {
void GcodeSuite::M250_report(const bool forReplay/*=true*/) {
report_heading_etc(forReplay, PSTR(STR_LCD_CONTRAST));
SERIAL_ECHOLNPAIR(" M250 C", ui.contrast);
SERIAL_ECHOLNPGM(" M250 C", ui.contrast);
}
#endif // HAS_LCD_CONTRAST

View File

@ -38,7 +38,7 @@ void GcodeSuite::M256() {
void GcodeSuite::M256_report(const bool forReplay/*=true*/) {
report_heading_etc(forReplay, PSTR(STR_LCD_BRIGHTNESS));
SERIAL_ECHOLNPAIR(" M256 B", ui.brightness);
SERIAL_ECHOLNPGM(" M256 B", ui.brightness);
}
#endif // HAS_LCD_BRIGHTNESS

View File

@ -45,7 +45,7 @@ void GcodeSuite::M414() {
void GcodeSuite::M414_report(const bool forReplay/*=true*/) {
report_heading_etc(forReplay, PSTR(STR_UI_LANGUAGE));
SERIAL_ECHOLNPAIR(" M414 S", ui.language);
SERIAL_ECHOLNPGM(" M414 S", ui.language);
}
#endif // HAS_MULTI_LANGUAGE