parent
50582e3b47
commit
42866db251
@ -276,6 +276,8 @@
|
||||
#error "RX_BUFFER_SIZE must be a power of 2 greater than 1."
|
||||
#elif TX_BUFFER_SIZE && (TX_BUFFER_SIZE < 2 || TX_BUFFER_SIZE > 256 || !IS_POWER_OF_2(TX_BUFFER_SIZE))
|
||||
#error "TX_BUFFER_SIZE must be 0, a power of 2 greater than 1, and no greater than 256."
|
||||
#elif ENABLED(BLUETOOTH)
|
||||
#error "BLUETOOTH is only supported with AT90USB."
|
||||
#endif
|
||||
#elif ENABLED(SERIAL_XON_XOFF) || ENABLED(SERIAL_STATS_MAX_RX_QUEUED) || ENABLED(SERIAL_STATS_DROPPED_RX)
|
||||
#error "SERIAL_XON_XOFF and SERIAL_STATS_* features not supported on USB-native AVR devices."
|
||||
|
@ -28,6 +28,7 @@
|
||||
#ifdef USBCON
|
||||
#include <HardwareSerial.h>
|
||||
#if ENABLED(BLUETOOTH)
|
||||
extern HardwareSerial bluetoothSerial;
|
||||
#define MYSERIAL bluetoothSerial
|
||||
#else
|
||||
#define MYSERIAL Serial
|
||||
|
Loading…
Reference in New Issue
Block a user