mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2026-01-03 05:12:36 -07:00
Undef unused 2nd serial option(s) (#21331)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
This commit is contained in:
parent
d81838e9fa
commit
59a9be5f5a
1 changed files with 4 additions and 1 deletions
|
|
@ -2913,6 +2913,9 @@
|
|||
#define HAS_MULTI_SERIAL 1
|
||||
#endif
|
||||
|
||||
#if ENABLED(MEATPACK_ON_SERIAL_PORT_1) || BOTH(HAS_MULTI_SERIAL, MEATPACK_ON_SERIAL_PORT_2)
|
||||
#if !HAS_MULTI_SERIAL
|
||||
#undef MEATPACK_ON_SERIAL_PORT_2
|
||||
#endif
|
||||
#if EITHER(MEATPACK_ON_SERIAL_PORT_1, MEATPACK_ON_SERIAL_PORT_2)
|
||||
#define HAS_MEATPACK 1
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue