♻️ 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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
76 changed files with 398 additions and 602 deletions

View file

@ -105,8 +105,7 @@ void GcodeSuite::report_heading(const bool forReplay, FSTR_P const fstr, const b
if (forReplay) return;
if (fstr) {
SERIAL_ECHO_START();
SERIAL_ECHOPGM("; ");
SERIAL_ECHOF(fstr);
SERIAL_ECHO(F("; "), fstr);
}
if (eol) { SERIAL_CHAR(':'); SERIAL_EOL(); }
}
@ -1120,7 +1119,7 @@ void GcodeSuite::process_parsed_command(const bool no_ok/*=false*/) {
if (!no_ok) queue.ok_to_send();
SERIAL_OUT(msgDone); // Call the msgDone serial hook to signal command processing done
SERIAL_IMPL.msgDone(); // Call the msgDone serial hook to signal command processing done
}
#if ENABLED(M100_FREE_MEMORY_DUMPER)