Fix build with Meatpack only on 2nd port (#21336)

Co-authored-by: Scott Lahteine <github@thinkyhead.com>
This commit is contained in:
X-Ryl669
2021-03-14 18:11:11 +01:00
committed by GitHub
parent cc3e878f90
commit d787cd3076
6 changed files with 26 additions and 29 deletions

View File

@@ -542,3 +542,10 @@
#else
#define HAS_USER_ITEM(N) 0
#endif
#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