From b4bf8144fc0eb10b1069ff1b8149f1bc5a17bd9c Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Mon, 29 Oct 2012 13:07:30 +0100 Subject: [PATCH] Protect usb_serial.c from Arduino IDE. This silly "IDE" simply processes every source code file it can find ... --- usb_serial.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usb_serial.c b/usb_serial.c index d10cb9f..84ad021 100644 --- a/usb_serial.c +++ b/usb_serial.c @@ -31,6 +31,9 @@ // Version 1.7: fix usb_serial_set_control // 2012-10-17: Import to Teacup firmware +/* protect this file from Arduino IDE */ +#ifdef USE_USB + #define USB_SERIAL_PRIVATE_INCLUDE #include "usb_serial.h" @@ -934,4 +937,4 @@ ISR(USB_COM_vect) UECONX = (1<