Compiler defines USBCON for USB devices (PR#2433)

This commit is contained in:
Richard Wackerbarth
2015-05-24 11:32:34 -05:00
parent 7268d46508
commit e83575537a
12 changed files with 12 additions and 24 deletions

View File

@ -64,7 +64,7 @@
#define BYTE 0
#ifndef AT90USB
#ifndef USBCON
// Define constants and variables for buffering incoming serial data. We're
// using a ring buffer (I think), in which rx_buffer_head is the index of the
// location to which to write the next incoming character and rx_buffer_tail
@ -150,10 +150,10 @@ class MarlinSerial { //: public Stream
};
extern MarlinSerial MSerial;
#endif // !AT90USB
#endif // !USBCON
// Use the UART for BT in AT90USB configurations
#if defined(AT90USB) && defined(BTENABLED)
#if defined(USBCON) && defined(BTENABLED)
extern HardwareSerial bt;
#endif