浏览代码

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

Co-authored-by: Scott Lahteine <github@thinkyhead.com>
X-Ryl669 4 年前
父节点
当前提交
9dc2712c47
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4
    1
      Marlin/src/inc/Conditionals_post.h

+ 4
- 1
Marlin/src/inc/Conditionals_post.h 查看文件

@@ -2913,6 +2913,9 @@
2913 2913
   #define HAS_MULTI_SERIAL 1
2914 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 2920
   #define HAS_MEATPACK 1
2918 2921
 #endif

正在加载...
取消
保存