From 994c6958625cb1486bc32f1d0ecf307d20007725 Mon Sep 17 00:00:00 2001 From: ellensp Date: Wed, 8 Jan 2020 16:47:45 +1300 Subject: [PATCH] Fix MKS_SGEN sanity check (#16501) --- Marlin/src/pins/lpc1768/pins_MKS_SBASE.h | 4 +++- Marlin/src/pins/lpc1769/pins_MKS_SGEN.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Marlin/src/pins/lpc1768/pins_MKS_SBASE.h b/Marlin/src/pins/lpc1768/pins_MKS_SBASE.h index fd87dbe1e..b830f3dcb 100644 --- a/Marlin/src/pins/lpc1768/pins_MKS_SBASE.h +++ b/Marlin/src/pins/lpc1768/pins_MKS_SBASE.h @@ -25,7 +25,9 @@ * 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." #endif diff --git a/Marlin/src/pins/lpc1769/pins_MKS_SGEN.h b/Marlin/src/pins/lpc1769/pins_MKS_SGEN.h index 30172e19e..7586415b4 100644 --- a/Marlin/src/pins/lpc1769/pins_MKS_SGEN.h +++ b/Marlin/src/pins/lpc1769/pins_MKS_SGEN.h @@ -31,6 +31,7 @@ #define BOARD_INFO_NAME "MKS SGen" #define BOARD_WEBSITE_URL "github.com/makerbase-mks/MKS-SGEN" +#define MKS_HAS_LPC1769 #include "../lpc1768/pins_MKS_SBASE.h"