aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/CDC.cpp
diff options
context:
space:
mode:
authorZach Eveland <zeveland@blacklabel-development.com>2011-08-30 11:50:08 -0400
committerZach Eveland <zeveland@blacklabel-development.com>2011-08-30 11:50:08 -0400
commitaf635024db2b5d46d57eb5f5da959f6b4f4bf42c (patch)
tree37c2727e05642c2ed5ca2b9267adbf2d6fde70ce /cores/arduino/CDC.cpp
parent481fdeab797d449f6b82473b1e377c495224cff7 (diff)
support for non-Leonardo boards is back!
Diffstat (limited to 'cores/arduino/CDC.cpp')
-rw-r--r--cores/arduino/CDC.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cores/arduino/CDC.cpp b/cores/arduino/CDC.cpp
index 1f1fcb5..b229cb5 100644
--- a/cores/arduino/CDC.cpp
+++ b/cores/arduino/CDC.cpp
@@ -20,6 +20,7 @@
#include "USBAPI.h"
#include <avr/wdt.h>
+#if defined(USBCON)
#ifdef CDC_ENABLED
// TODO: Should really use the wdt here
@@ -174,3 +175,4 @@ size_t Serial_::write(uint8_t c)
Serial_ Serial;
#endif
+#endif /* if defined(USBCON) */ \ No newline at end of file