瀏覽代碼

Fix MKS_SGEN sanity check (#16501)

ellensp 4 年之前
父節點
當前提交
994c695862
共有 2 個檔案被更改,包括 4 行新增1 行删除
  1. 3
    1
      Marlin/src/pins/lpc1768/pins_MKS_SBASE.h
  2. 1
    0
      Marlin/src/pins/lpc1769/pins_MKS_SGEN.h

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

@@ -25,7 +25,9 @@
25 25
  * MKS SBASE pin assignments
26 26
  */
27 27
 
28
-#ifndef MCU_LPC1768
28
+#if defined(MKS_HAS_LPC1769) && !defined(MCU_LPC1769)
29
+  #error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
30
+#elif !defined(MKS_HAS_LPC1769) && !defined(MCU_LPC1768)
29 31
   #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
30 32
 #endif
31 33
 

+ 1
- 0
Marlin/src/pins/lpc1769/pins_MKS_SGEN.h 查看文件

@@ -31,6 +31,7 @@
31 31
 
32 32
 #define BOARD_INFO_NAME   "MKS SGen"
33 33
 #define BOARD_WEBSITE_URL "github.com/makerbase-mks/MKS-SGEN"
34
+#define MKS_HAS_LPC1769
34 35
 
35 36
 #include "../lpc1768/pins_MKS_SBASE.h"
36 37
 

Loading…
取消
儲存