From 7945ffb996106329472cd828c98ee86af3d4cbc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliv=C3=A9r=20Rem=C3=A9ny?= <25034625+remenyo@users.noreply.github.com> Date: Fri, 2 Feb 2024 16:57:43 +0100 Subject: [PATCH] include esp_attr.h where IRAM_ATTR is used (#952) * Update LoRaWAN.cpp * Update Pager.cpp --- src/protocols/LoRaWAN/LoRaWAN.cpp | 3 +++ src/protocols/Pager/Pager.cpp | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/protocols/LoRaWAN/LoRaWAN.cpp b/src/protocols/LoRaWAN/LoRaWAN.cpp index bfe6d0a3c..f0ca92686 100644 --- a/src/protocols/LoRaWAN/LoRaWAN.cpp +++ b/src/protocols/LoRaWAN/LoRaWAN.cpp @@ -1,5 +1,8 @@ #include "LoRaWAN.h" #include +#if defined(ESP8266) || defined(ESP32) +#include "esp_attr.h" +#endif #if !RADIOLIB_EXCLUDE_LORAWAN diff --git a/src/protocols/Pager/Pager.cpp b/src/protocols/Pager/Pager.cpp index 6b9ade4f9..2432dc93d 100644 --- a/src/protocols/Pager/Pager.cpp +++ b/src/protocols/Pager/Pager.cpp @@ -1,6 +1,10 @@ #include "Pager.h" #include #include +#if defined(ESP8266) || defined(ESP32) +#include "esp_attr.h" +#endif + #if !RADIOLIB_EXCLUDE_PAGER #if !RADIOLIB_EXCLUDE_DIRECT_RECEIVE