Fix MKS_SGEN sanity check (#16501)

This commit is contained in:
ellensp 2020-01-08 16:47:45 +13:00 committed by Scott Lahteine
parent f154e94981
commit 994c695862
2 changed files with 4 additions and 1 deletions

View file

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

View file

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