Browse Source

Undef unused 2nd serial option(s) (#21331)

Co-authored-by: Scott Lahteine <github@thinkyhead.com>
X-Ryl669 4 years ago
parent
commit
9dc2712c47
No account linked to committer's email address
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      Marlin/src/inc/Conditionals_post.h

+ 4
- 1
Marlin/src/inc/Conditionals_post.h View File

2913
   #define HAS_MULTI_SERIAL 1
2913
   #define HAS_MULTI_SERIAL 1
2914
 #endif
2914
 #endif
2915
 
2915
 
2916
-#if ENABLED(MEATPACK_ON_SERIAL_PORT_1) || BOTH(HAS_MULTI_SERIAL, MEATPACK_ON_SERIAL_PORT_2)
2916
+#if !HAS_MULTI_SERIAL
2917
+  #undef MEATPACK_ON_SERIAL_PORT_2
2918
+#endif
2919
+#if EITHER(MEATPACK_ON_SERIAL_PORT_1, MEATPACK_ON_SERIAL_PORT_2)
2917
   #define HAS_MEATPACK 1
2920
   #define HAS_MEATPACK 1
2918
 #endif
2921
 #endif

Loading…
Cancel
Save