From 9f0bdffc50f71c04123741b47099fd3f5a16e570 Mon Sep 17 00:00:00 2001 From: jgromes Date: Sun, 25 Feb 2024 18:02:31 +0100 Subject: [PATCH] [LoRaWAN] Use ESP_PLATFORM macro to include esp_attr.h (#952) --- src/protocols/LoRaWAN/LoRaWAN.cpp | 2 +- src/protocols/Pager/Pager.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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