From a44d9dfe28424289f551f6faa2c58af3b396629c Mon Sep 17 00:00:00 2001 From: Pavel Slama Date: Thu, 5 Aug 2021 19:59:57 +0200 Subject: [PATCH] BMP compile fix --- code/WemosWeatherStation/meters.h | 4 ++-- code/platformio.ini | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/WemosWeatherStation/meters.h b/code/WemosWeatherStation/meters.h index 639e96f..c6547d6 100644 --- a/code/WemosWeatherStation/meters.h +++ b/code/WemosWeatherStation/meters.h @@ -10,11 +10,11 @@ volatile bool meters_data = false; volatile bool rain_data = false; volatile bool read_adc = false; -void ICACHE_RAM_ATTR intAnemometer() { +void IRAM_ATTR intAnemometer() { meters.intAnemometer(); } -void ICACHE_RAM_ATTR intRaingauge() { +void IRAM_ATTR intRaingauge() { meters.intRaingauge(); } diff --git a/code/platformio.ini b/code/platformio.ini index 3c9bae9..160f164 100644 --- a/code/platformio.ini +++ b/code/platformio.ini @@ -33,7 +33,7 @@ build_flags = lib_deps = ${common.lib_deps} adafruit/Adafruit MCP9808 Library - finitespace/BME280 + https://github.com/finitespace/BME280 enjoyneering/HTU21D pilotak/WeatherMeters pilotak/MCP3X21 @@ -50,7 +50,7 @@ build_flags = lib_deps = ${common.lib_deps} adafruit/Adafruit MCP9808 Library - finitespace/BME280 + https://github.com/finitespace/BME280 enjoyneering/HTU21D [env:WemosWeatherStation_v2] @@ -99,7 +99,7 @@ build_flags = '-D HAS_METERS' lib_deps = ${common.lib_deps} - finitespace/BME280 + https://github.com/finitespace/BME280 https://github.com/pilotak/ClosedCube_SHT31D_Arduino pilotak/WeatherMeters pilotak/MCP3X21 \ No newline at end of file