Browse Source

Fix serial.h avr block

Followup to #8148
Scott Lahteine 7 years ago
parent
commit
c37d38886c
1 changed files with 1 additions and 15 deletions
  1. 1
    15
      Marlin/src/core/serial.h

+ 1
- 15
Marlin/src/core/serial.h View File

61
   };
61
   };
62
 #endif
62
 #endif
63
 
63
 
64
-//todo: HAL: breaks encapsulation
65
-// For AVR only, define a serial interface based on configuration
66
-#ifdef __AVR__
67
-  #ifdef USBCON
68
-    #include <HardwareSerial.h>
69
-    #if ENABLED(BLUETOOTH)
70
-      #define MYSERIAL0 bluetoothSerial
71
-    #else
72
-      #define MYSERIAL0 Serial
73
-    #endif // BLUETOOTH
74
-  #else
75
-    #include "../HAL/HAL_AVR/MarlinSerial.h"
76
-    #define MYSERIAL0 customizedSerial
77
-  #endif
78
-#elif defined(ARDUINO_ARCH_SAM)
64
+#ifdef ARDUINO_ARCH_SAM
79
   // To pull the Serial port definitions and overrides
65
   // To pull the Serial port definitions and overrides
80
   #include "../HAL/HAL_DUE/MarlinSerial_Due.h"
66
   #include "../HAL/HAL_DUE/MarlinSerial_Due.h"
81
 #endif
67
 #endif

Loading…
Cancel
Save