Browse Source

Fix serial.h avr block

Followup to #8148
pull/1/head
Scott Lahteine 7 years ago
parent
commit
c37d38886c
  1. 16
      Marlin/src/core/serial.h

16
Marlin/src/core/serial.h

@ -61,21 +61,7 @@ enum DebugFlags {
}; };
#endif #endif
//todo: HAL: breaks encapsulation #ifdef ARDUINO_ARCH_SAM
// 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)
// To pull the Serial port definitions and overrides // To pull the Serial port definitions and overrides
#include "../HAL/HAL_DUE/MarlinSerial_Due.h" #include "../HAL/HAL_DUE/MarlinSerial_Due.h"
#endif #endif

Loading…
Cancel
Save