Browse Source

Fix MKS_SGEN sanity check (#16501)

ellensp 4 years ago
parent
commit
994c695862

+ 3
- 1
Marlin/src/pins/lpc1768/pins_MKS_SBASE.h View File

@@ -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 View File

@@ -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…
Cancel
Save