From 045f7fa401c2a5b62a2f5cb94c1e489f0affb99e Mon Sep 17 00:00:00 2001 From: Michael Moon Date: Sat, 23 Oct 2010 15:58:19 +1100 Subject: [PATCH] wrap copier.c in an ifdef so arduino ide doesn't try to include it --- copier.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/copier.c b/copier.c index 23ca0cd..9317d9a 100644 --- a/copier.c +++ b/copier.c @@ -1,11 +1,12 @@ +#ifdef COPIER + #include "copier.h" #include #include #include "arduino.h" -#include "timer.h" -#include "serial.h" +#include "delay.h" uint32_t copier_xchange(uint32_t cmd) { uint32_t r = 0, c = cmd; @@ -96,3 +97,5 @@ void copy() { SET_INPUT(SCK); SET_INPUT(COPIER_RESET); } + +#endif /* COPIER */