From ad323d852e7620b9ee8d8f2eedc5b6e16105161b Mon Sep 17 00:00:00 2001
From: Scott Lahteine <thinkyhead@users.noreply.github.com>
Date: Fri, 9 Feb 2018 00:41:39 -0600
Subject: [PATCH] Sanity check for SERIAL_PORT

Addressing #7400
---
 Marlin/SanityCheck.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Marlin/SanityCheck.h b/Marlin/SanityCheck.h
index 10f0eec2037..8f7ca2ecbbc 100644
--- a/Marlin/SanityCheck.h
+++ b/Marlin/SanityCheck.h
@@ -283,6 +283,10 @@
   #error "SERIAL_XON_XOFF and SERIAL_STATS_* features not supported on USB-native AVR devices."
 #endif
 
+#if SERIAL_PORT > 7
+  #error "Set SERIAL_PORT to the port on your board. Usually this is 0."
+#endif
+
 /**
  * Dual Stepper Drivers
  */