From 56fdcf93d1fc8470b442f61c7ec8214cfadcb37e Mon Sep 17 00:00:00 2001
From: Tobias Frost <coldtobi@users.noreply.github.com>
Date: Tue, 5 Mar 2019 13:45:28 +0100
Subject: [PATCH] Disallow SD_DETECT_INVERTED with FYSETC F6. (#13307)

---
 Marlin/src/pins/pins_FYSETC_F6_13.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Marlin/src/pins/pins_FYSETC_F6_13.h b/Marlin/src/pins/pins_FYSETC_F6_13.h
index a3c972c25c0..cd67db281a9 100644
--- a/Marlin/src/pins/pins_FYSETC_F6_13.h
+++ b/Marlin/src/pins/pins_FYSETC_F6_13.h
@@ -28,6 +28,10 @@
   #error "Oops! Select 'FYSETC F6' in 'Tools > Board.'"
 #endif
 
+#ifdef SD_DETECT_INVERTED
+  #error "SD_DETECT_INVERTED must be disabled for the FYSETC_F6_13 board."
+#endif
+
 #define BOARD_NAME "FYSETC F6 1.3"
 
 #define RESET_PIN          30