Skip to content

Commit

Permalink
FW: Add additional IMU failure information
Browse files Browse the repository at this point in the history
  • Loading branch information
dlktdr committed Aug 3, 2024
1 parent 4ca2371 commit 91bc26e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions firmware/src/src/sense.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,10 @@ int sense_Init()
rslt = bmi2_sensor_enable(sensor_list, 2, &bmi2_dev);
bmi2_error_codes_print_result(rslt);
}
} else
} else {
LOG_ERR("Failed to initalize BMI270");
return -1;
}
#endif

#if defined(HAS_BMM150)
Expand All @@ -231,7 +233,7 @@ int sense_Init()
}
hasMag = true;
} else {
LOG_ERR("Unable to init BMM150 - Continueing with no magnetomer\n");
LOG_ERR("Unable to init BMM150 - Continuing with no magnetomer\n");
}
#endif

Expand Down Expand Up @@ -265,6 +267,7 @@ int sense_Init()
if (!APDS.begin()) {
blesenseboard = false;
} else {
LOG_ERR("APDS9960 Proximity Sensor Not Found");
blesenseboard = true;
}
#endif
Expand Down

0 comments on commit 91bc26e

Please sign in to comment.