♻️ Simplify SERIAL_ECHO (#25928)

Since this increases AVR code size, try to optimize further.
This commit is contained in:
Scott Lahteine
2023-06-12 16:38:14 -05:00
committed by GitHub
parent d9d2dae883
commit 2ef71c6eba
76 changed files with 398 additions and 602 deletions
+1 -3
View File
@@ -294,9 +294,7 @@ void GcodeSuite::M43() {
// 'E' Enable or disable endstop monitoring and return
if (parser.seen('E')) {
endstops.monitor_flag = parser.value_bool();
SERIAL_ECHOPGM("endstop monitor ");
SERIAL_ECHOF(endstops.monitor_flag ? F("en") : F("dis"));
SERIAL_ECHOLNPGM("abled");
SERIAL_ECHOLN(F("endstop monitor "), endstops.monitor_flag ? F("en") : F("dis"), F("abled"));
return;
}