diff --git a/src/MideaIR.h b/src/MideaIR.h index 00777ff..141055d 100644 --- a/src/MideaIR.h +++ b/src/MideaIR.h @@ -10,7 +10,12 @@ #define MideaIR_h #include +#if defined(ESP8266) +#include +#include +#else #include +#endif // Uncomment the following line to use old values for mode and fan speed // #define OLD_MIDEA diff --git a/src/MidearIR.cpp b/src/MidearIR.cpp index 3603e07..4c7710e 100644 --- a/src/MidearIR.cpp +++ b/src/MidearIR.cpp @@ -8,7 +8,12 @@ */ #include "MideaIR.h" #include +#if defined(ESP8266) +#include +#include +#else #include +#endif MideaIR::MideaIR(IRsend *ref){ /* Initialize the variables with the default values */