diff --git a/src/protocols/LoRaWAN/LoRaWAN.cpp b/src/protocols/LoRaWAN/LoRaWAN.cpp index 6a038746d..88790e7f2 100644 --- a/src/protocols/LoRaWAN/LoRaWAN.cpp +++ b/src/protocols/LoRaWAN/LoRaWAN.cpp @@ -1,6 +1,6 @@ #include "LoRaWAN.h" #include -#if defined(ESP8266) || defined(ESP32) +#if defined(ESP_PLATFORM) #include "esp_attr.h" #endif diff --git a/src/protocols/Pager/Pager.cpp b/src/protocols/Pager/Pager.cpp index 2432dc93d..799fd626c 100644 --- a/src/protocols/Pager/Pager.cpp +++ b/src/protocols/Pager/Pager.cpp @@ -1,7 +1,7 @@ #include "Pager.h" #include #include -#if defined(ESP8266) || defined(ESP32) +#if defined(ESP_PLATFORM) #include "esp_attr.h" #endif