Protect usb_serial.c from Arduino IDE.
This silly "IDE" simply processes every source code file it can find ...
This commit is contained in:
parent
481354a4a7
commit
b4bf8144fc
|
|
@ -31,6 +31,9 @@
|
||||||
// Version 1.7: fix usb_serial_set_control
|
// Version 1.7: fix usb_serial_set_control
|
||||||
// 2012-10-17: Import to Teacup firmware
|
// 2012-10-17: Import to Teacup firmware
|
||||||
|
|
||||||
|
/* protect this file from Arduino IDE */
|
||||||
|
#ifdef USE_USB
|
||||||
|
|
||||||
#define USB_SERIAL_PRIVATE_INCLUDE
|
#define USB_SERIAL_PRIVATE_INCLUDE
|
||||||
#include "usb_serial.h"
|
#include "usb_serial.h"
|
||||||
|
|
||||||
|
|
@ -934,4 +937,4 @@ ISR(USB_COM_vect)
|
||||||
UECONX = (1<<STALLRQ) | (1<<EPEN); // stall
|
UECONX = (1<<STALLRQ) | (1<<EPEN); // stall
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* USE_USB */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue