Skip to content

Commit

Permalink
Merge pull request #39 from maidnl/select_sensor_presence_fix
Browse files Browse the repository at this point in the history
Fix for Board non mounting Bosch Accelerometer BMI270
  • Loading branch information
facchinm authored Nov 4, 2024
2 parents 30c0807 + d9d02d1 commit e4e350d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/ScienceKitR2/PhysicsLabFirmware/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ void sensorsInit() {
INA.alertOnBusOverVoltage(true, 5000); // Trigger alert if over 5V on bus

// bmm150
if (!BME.begin()) {
Serial.println("Failed to initialize IMU!");
if (!BME.begin(BOSCH_MAGNETOMETER_ONLY)) {
Serial.println("Failed to initialize MAGNETOMETER!");
while (1);
}

// LSM6DSOX init
if (!IMU_SK.begin()) {
Serial.println("Failed to initialize IMU!");
Serial.println("Failed to initialize ACCELEROMETER!");
while (1);
}
Serial.println("IMU Initialized");
Expand Down

0 comments on commit e4e350d

Please sign in to comment.