From c37d38886cb4ffda1f97251069c66bff49458a88 Mon Sep 17 00:00:00 2001
From: Scott Lahteine <github@thinkyhead.com>
Date: Thu, 11 Jan 2018 21:30:18 -0600
Subject: [PATCH] Fix serial.h avr block

Followup to #8148
---
 Marlin/src/core/serial.h | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/Marlin/src/core/serial.h b/Marlin/src/core/serial.h
index 5f90cd0e7f..232b692327 100644
--- a/Marlin/src/core/serial.h
+++ b/Marlin/src/core/serial.h
@@ -61,21 +61,7 @@ enum DebugFlags {
   };
 #endif
 
-//todo: HAL: breaks encapsulation
-// For AVR only, define a serial interface based on configuration
-#ifdef __AVR__
-  #ifdef USBCON
-    #include <HardwareSerial.h>
-    #if ENABLED(BLUETOOTH)
-      #define MYSERIAL0 bluetoothSerial
-    #else
-      #define MYSERIAL0 Serial
-    #endif // BLUETOOTH
-  #else
-    #include "../HAL/HAL_AVR/MarlinSerial.h"
-    #define MYSERIAL0 customizedSerial
-  #endif
-#elif defined(ARDUINO_ARCH_SAM)
+#ifdef ARDUINO_ARCH_SAM
   // To pull the Serial port definitions and overrides
   #include "../HAL/HAL_DUE/MarlinSerial_Due.h"
 #endif
-- 
GitLab