浏览代码

🚸 Better error for MOTHERBOARD not defined (#22551)

ellensp 3 年前
父节点
当前提交
5c610b2c18
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      Marlin/src/pins/pins.h

+ 3
- 1
Marlin/src/pins/pins.h 查看文件

@@ -769,8 +769,10 @@
769 769
     #error "BOARD_RAMPS_LONGER3D_LK4PRO is now BOARD_LONGER3D_LKx_PRO. Please update your configuration."
770 770
   #elif MB(BTT_SKR_V2_0)
771 771
     #error "BTT_SKR_V2_0 is now BTT_SKR_V2_0_REV_A or BTT_SKR_V2_0_REV_B. See https://bit.ly/3t5d9JQ for more information. Please update your configuration."
772
+  #elif defined(MOTHERBOARD)
773
+    #error "Unknown MOTHERBOARD value set in Configuration.h."
772 774
   #else
773
-    #error "Unknown MOTHERBOARD value set in Configuration.h"
775
+    #error "MOTHERBOARD not defined! Use '#define MOTHERBOARD BOARD_...' in Configuration.h."
774 776
   #endif
775 777
 
776 778
   #undef BOARD_MKS_13

正在加载...
取消
保存