From 24485a3e926f8ef4604c8562b565b98ce02ff00c Mon Sep 17 00:00:00 2001 From: Nathan Sobieck Date: Wed, 4 Apr 2012 20:49:14 -0300 Subject: [PATCH] Updated For Arduino IDE v1.0 W Backward compatibility --- framework/libraries/Password/Password.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/framework/libraries/Password/Password.h b/framework/libraries/Password/Password.h index fc89504..1e2a7de 100644 --- a/framework/libraries/Password/Password.h +++ b/framework/libraries/Password/Password.h @@ -4,6 +4,7 @@ || @url http://wiring.org.co/ || @url http://alexanderbrevig.com/ || @contribution Brett Hagman +|| @Updated for Arduino IDE 1.0 -w- backwards compatibility. nathan@sobisource.com || || @description || | Handle passwords easily. @@ -18,6 +19,13 @@ #ifndef PASSWORD_H #define PASSWORD_H +// Arduino 1.0 w BKWRD versioning. +#if defined(ARDUINO) && ARDUINO >= 100 +#include "Arduino.h" // for digitalRead, digitalWrite, etc +#else +#include "WProgram.h" +#endif + #include #define MAX_PASSWORD_LENGTH 20