From 014d58fb8bbd5fccd0c12cae906c0f945a1e7d3f Mon Sep 17 00:00:00 2001 From: DalesLandNet Date: Mon, 19 Jul 2021 10:05:28 +0100 Subject: [PATCH] Change depricated symbol ICACHE_RAM_ATTR that had been used for the ESP8266 this is now the same as the ESP32 --- src/SDI12_boards.h | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/SDI12_boards.h b/src/SDI12_boards.h index f918959..f5e044a 100644 --- a/src/SDI12_boards.h +++ b/src/SDI12_boards.h @@ -19,23 +19,17 @@ sensors. This library provides a general software solution, without requiring #include #if defined(ESP32) || defined(ESP8266) +// On espressif boards (ESP8266 and ESP32), the ISR must be stored in IRAM +#define ESPFAMILY_USE_INSTRUCTION_RAM IRAM_ATTR /** The interger type (size) of the timer return value */ typedef uint32_t sdi12timer_t; -#else -/** The interger type (size) of the timer return value */ -typedef uint8_t sdi12timer_t; -#endif -// On espressif boards (ESP8266 and ESP32), the ISR must be stored in IRAM -#if defined(ESP32) -#define ESPFAMILY_USE_INSTRUCTION_RAM IRAM_ATTR -#elif defined(ESP8266) -#define ESPFAMILY_USE_INSTRUCTION_RAM ICACHE_RAM_ATTR #else #define ESPFAMILY_USE_INSTRUCTION_RAM +/** The interger type (size) of the timer return value */ +typedef uint8_t sdi12timer_t; #endif - /** * @brief The class used to define the processor timer for the SDI-12 serial emulation. */