Compiler defines USBCON for USB devices (PR#2433)
This commit is contained in:
@ -23,7 +23,7 @@
|
||||
#include "Marlin.h"
|
||||
#include "MarlinSerial.h"
|
||||
|
||||
#ifndef AT90USB
|
||||
#ifndef USBCON
|
||||
// this next line disables the entire HardwareSerial.cpp,
|
||||
// this is so I can support Attiny series and any other chip without a UART
|
||||
#if defined(UBRRH) || defined(UBRR0H) || defined(UBRR1H) || defined(UBRR2H) || defined(UBRR3H)
|
||||
@ -284,9 +284,9 @@ void MarlinSerial::printFloat(double number, uint8_t digits) {
|
||||
MarlinSerial MSerial;
|
||||
|
||||
#endif // whole file
|
||||
#endif // !AT90USB
|
||||
#endif // !USBCON
|
||||
|
||||
// For AT90USB targets use the UART for BT interfacing
|
||||
#if defined(AT90USB) && defined(BTENABLED)
|
||||
#if defined(USBCON) && defined(BTENABLED)
|
||||
HardwareSerial bt;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user