From 48951a8b58d2a6758a93a02968834a4b39782db2 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Mon, 28 Apr 2025 10:56:59 +0200 Subject: [PATCH] Allow using IMU object on Zephyr core --- src/BMI270.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/BMI270.cpp b/src/BMI270.cpp index ae13785..1a3950a 100644 --- a/src/BMI270.cpp +++ b/src/BMI270.cpp @@ -9,10 +9,15 @@ static events::EventQueue queue(10 * EVENTS_EVENT_SIZE); #endif + +#if defined(ARDUINO_NANO33BLE) +#define TARGET_ARDUINO_NANO33BLE +#endif + BoschSensorClass::BoschSensorClass(TwoWire& wire) { _wire = &wire; - #ifdef TARGET_ARDUINO_NANO33BLE + #if defined(TARGET_ARDUINO_NANO33BLE) && defined(__MBED__) BMI270_INT1 = p11; #endif }