Skip to content

Commit 74baffb

Browse files
committed
Fixes for latest bosch libraries
1 parent bc2f73a commit 74baffb

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

platformio.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ test_framework = googletest
1212
test_build_src = true
1313
lib_deps=m5stack/M5Unified
1414
m5stack/M5UnitUnified
15-
https://github.com/boschsensortec/Bosch-BME68x-Library.git @ 1.2.40408
15+
boschsensortec/BME68x Sensor library@>=1.3.40408
1616

1717
; --------------------------------
1818
[bsec2]
19-
lib_deps = https://github.com/boschsensortec/Bosch-BSEC2-Library.git @ 1.8.2610
19+
lib_deps = boschsensortec/bsec2@>=1.10.2610
2020

2121
[m5base]
2222
monitor_speed = 115200

src/unit/unit_BME688.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@
1010
#ifndef M5_UNIT_ENV_UNIT_BME688_HPP
1111
#define M5_UNIT_ENV_UNIT_BME688_HPP
1212

13-
#if (defined(ESP_PLATFORM) && (!defined(CONFIG_IDF_TARGET_ESP32C6) && \
14-
(!defined(ARDUINO_M5Stack_NanoC6) && !defined(ARDUINO_M5STACK_NANOC6)))) || \
15-
defined(DOXYGEN_PROCESS)
16-
#pragma message "Using BSEC2"
17-
#define UNIT_BME688_USING_BSEC2
18-
#endif
19-
2013
#include <M5UnitComponent.hpp>
2114
#include <m5_utility/stl/extension.hpp>
2215

@@ -26,14 +19,21 @@
2619
#include <bme68x/bme68x.h>
2720
#endif
2821

29-
#if defined(UNIT_BME688_USING_BSEC2)
22+
#if defined(CONFIG_IDF_TARGET_ESP32C6)
23+
#pragma message "Not using bsec2"
24+
25+
#else
26+
#pragma message "Using bsec2"
27+
#define UNIT_BME688_USING_BSEC2
28+
3029
#if defined(ARDUINO)
3130
#include <bsec2.h>
3231
#else
3332
#include <inc/bsec_datatypes.h>
3433
#endif
3534

3635
#endif
36+
3737
#include <memory>
3838
#include <limits>
3939
#include <initializer_list>

0 commit comments

Comments
 (0)