♻️ Simplify SERIAL_ECHO (#25928)
Since this increases AVR code size, try to optimize further.
This commit is contained in:
parent
d9d2dae883
commit
2ef71c6eba
76 changed files with 398 additions and 602 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue