Skip to content

Commit bb78783

Browse files
authored
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
1 parent 48f2db2 commit bb78783

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/IRremoteESP8266.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@
5252
#include <string>
5353
#endif // UNIT_TEST
5454

55-
#include "IRmacros.h"
56-
5755
// Library Version Information
5856
// Major version number (X.x.x)
5957
#define _IRREMOTEESP8266_VERSION_MAJOR 2

src/IRtext.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#include "IRremoteESP8266.h"
1212
#include "i18n.h"
1313

14+
#include "IRmacros.h"
15+
1416
#ifndef PROGMEM
1517
#define PROGMEM // Pretend we have the PROGMEM macro even if we really don't.
1618
#endif

0 commit comments

Comments
 (0)