File tree Expand file tree Collapse file tree 3 files changed +7
-37
lines changed
Expand file tree Collapse file tree 3 files changed +7
-37
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -452,6 +452,8 @@ void BoschSensorClass::print_rslt(int8_t rslt)
452452 }
453453}
454454
455- #if IMU_INCLUDED
456- BoschSensorClass IMU (Wire1);
455+ #ifdef TARGET_ARDUINO_NANO33BLE
456+ BoschSensorClass IMU_BMI270_BMM150 (Wire1);
457+ #else
458+ BoschSensorClass IMU_BMI270_BMM150 (Wire);
457459#endif
Original file line number Diff line number Diff line change 2121#include < Wire.h>
2222#include " utilities/BMI270-Sensor-API/bmi270.h"
2323#include " utilities/BMM150-Sensor-API/bmm150.h"
24- #include " ArduinoIMU.h"
2524
26-
27- #define IMU_INCLUDED !HAS_INCLUDE_IMU
2825struct dev_info {
2926 TwoWire* _wire;
3027 uint8_t dev_addr;
@@ -87,6 +84,6 @@ class BoschSensorClass {
8784 uint16_t _int_status;
8885};
8986
90- # if IMU_INCLUDED
91- extern BoschSensorClass IMU;
92- #endif
87+ extern BoschSensorClass IMU_BMI270_BMM150;
88+ # undef IMU
89+ #define IMU IMU_BMI270_BMM150
You can’t perform that action at this time.
0 commit comments