diff --git a/Bounce2.cpp b/Bounce2.cpp index 67487c5..84f928e 100644 --- a/Bounce2.cpp +++ b/Bounce2.cpp @@ -1,10 +1,6 @@ // Please read Bounce2.h for information about the liscence and authors -#if defined(ARDUINO) && ARDUINO >= 100 -#include "Arduino.h" -#else -#include "WProgram.h" -#endif + #include "Bounce2.h" static const uint8_t DEBOUNCED_STATE = 0b00000001; diff --git a/Bounce2.h b/Bounce2.h index ff04a45..8e6eebb 100644 --- a/Bounce2.h +++ b/Bounce2.h @@ -29,6 +29,12 @@ #ifndef Bounce2_h #define Bounce2_h +#if defined(ARDUINO) && ARDUINO >= 100 +#include "Arduino.h" +#else +#include "WProgram.h" +#endif + // Uncomment the following line for "LOCK-OUT" debounce method //#define BOUNCE_LOCK_OUT diff --git a/library.json b/library.json index fb8419f..327baa8 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "type": "git", "url": "https://github.com/thomasfredericks/Bounce2.git" }, - "version": "2.4", + "version": "2.41", "exclude": [ "*.png", "*.zip" diff --git a/library.properties b/library.properties index 032933b..ee9933d 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Bounce2 -version=2.4 +version=2.41 author=Thomas O Fredericks with contributions fromEric Lowry, Jim Schimpf and Tom Harkaway maintainer=Thomas O Fredericks sentence=Debouncing library for Arduino and Wiring.