Skip to content

Commit 48951a8

Browse files
committed
Allow using IMU object on Zephyr core
1 parent 92d4cec commit 48951a8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/BMI270.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,15 @@
99

1010
static events::EventQueue queue(10 * EVENTS_EVENT_SIZE);
1111
#endif
12+
13+
#if defined(ARDUINO_NANO33BLE)
14+
#define TARGET_ARDUINO_NANO33BLE
15+
#endif
16+
1217
BoschSensorClass::BoschSensorClass(TwoWire& wire)
1318
{
1419
_wire = &wire;
15-
#ifdef TARGET_ARDUINO_NANO33BLE
20+
#if defined(TARGET_ARDUINO_NANO33BLE) && defined(__MBED__)
1621
BMI270_INT1 = p11;
1722
#endif
1823
}

0 commit comments

Comments
 (0)