From bb78783b96f61c30d97f284bee894cf2f1a76b26 Mon Sep 17 00:00:00 2001 From: Ton Huisman Date: Wed, 17 Aug 2022 12:37:52 +0200 Subject: [PATCH] Give IRmacros.h smaller scope to avoid impacting projects using IRremoteESP8266 (#1857) Most projects use IRremoteESP8266 by including the IRremoteESP8266.h file. To avoid unexpectedly impacting these projects it is safer to move the include to only where it is to be used. Ref #1853 Ref #1851 --- src/IRremoteESP8266.h | 2 -- src/IRtext.cpp | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/IRremoteESP8266.h b/src/IRremoteESP8266.h index df813532a..f73909054 100644 --- a/src/IRremoteESP8266.h +++ b/src/IRremoteESP8266.h @@ -52,8 +52,6 @@ #include #endif // UNIT_TEST -#include "IRmacros.h" - // Library Version Information // Major version number (X.x.x) #define _IRREMOTEESP8266_VERSION_MAJOR 2 diff --git a/src/IRtext.cpp b/src/IRtext.cpp index 377baa751..5bd25ed95 100644 --- a/src/IRtext.cpp +++ b/src/IRtext.cpp @@ -11,6 +11,8 @@ #include "IRremoteESP8266.h" #include "i18n.h" +#include "IRmacros.h" + #ifndef PROGMEM #define PROGMEM // Pretend we have the PROGMEM macro even if we really don't. #endif