瀏覽代碼

🚸 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

Loading…
取消
儲存