Permalink
Browse files

Arduino 1.0 compatible

  • Loading branch information...
infomaniac50 committed Dec 19, 2011
1 parent d97082b commit 53a20b0d15a6a35f8e2b2542216654af255da240
Showing with 21 additions and 5 deletions.
  1. +0 −1 Logger.cpp
  2. +6 −1 Logger.h
  3. +5 −1 LoggerSD.h
  4. +5 −1 utility/Sd2Card.cpp
  5. +5 −1 utility/SdFatUtil.h
View
@@ -4,7 +4,6 @@
Released into the public domain.
*/
-#include "Arduino.h"
#include "Logger.h"
#include <LoggerSD.h>
View
@@ -7,7 +7,12 @@
#ifndef Logger_h
#define Logger_h
-#include "Arduino.h"
+#if (ARDUINO >= 100)
+ #include "Arduino.h"
+#else
+ #include "WProgram.h"
+#endif
+
#include <LoggerSD.h>
enum log_outputs
View
@@ -15,7 +15,11 @@
#ifndef __SD_H__
#define __SD_H__
-#include <Arduino.h>
+#if (ARDUINO >= 100)
+ #include "Arduino.h"
+#else
+ #include "WProgram.h"
+#endif
#include <utility/SdFat.h>
#include <utility/SdFatUtil.h>
View
@@ -17,7 +17,11 @@
* along with the Arduino Sd2Card Library. If not, see
* <http://www.gnu.org/licenses/>.
*/
-#include <Arduino.h>
+#if (ARDUINO >= 100)
+ #include "Arduino.h"
+#else
+ #include "WProgram.h"
+#endif
#include "Sd2Card.h"
//------------------------------------------------------------------------------
#ifndef SOFTWARE_SPI
View
@@ -23,7 +23,11 @@
* \file
* Useful utility functions.
*/
-#include <Arduino.h>
+#if (ARDUINO >= 100)
+ #include "Arduino.h"
+#else
+ #include "WProgram.h"
+#endif
#include <avr/pgmspace.h>
/** Store and print a string in flash memory.*/
#define PgmPrint(x) SerialPrint_P(PSTR(x))

0 comments on commit 53a20b0

Please sign in to comment.