Misc. cleanup, serial strings

This commit is contained in:
Scott Lahteine
2020-10-19 20:38:24 -05:00
parent b320b1a3c2
commit 92767f5513
7 changed files with 12 additions and 19 deletions

View File

@ -57,9 +57,9 @@ void GcodeSuite::M118() {
if (WITHIN(port, 0, NUM_SERIAL))
serial_port_index = (
port == 0 ? SERIAL_BOTH
: port == 1 ? SERIAL_PORT
#ifdef SERIAL_PORT_2
: port == 2 ? SERIAL_PORT_2
: port == 1 ? 0
#if HAS_MULTI_SERIAL
: port == 2 ? 1
#endif
: SERIAL_PORT
);