Skip to content

Commit

Permalink
Separate 9250 and 9255 detection messages
Browse files Browse the repository at this point in the history
  • Loading branch information
okalachev committed Apr 2, 2024
1 parent fd70893 commit 0ff6929
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions MPU9250.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@ bool MPU9250::begin() {
if (who_am_i_ == WHOAMI_MPU6500_) {
// disable AK8963 functions
is_mpu6500_ = true;
log("MPU6500 detected");
} else if ((who_am_i_ == WHOAMI_MPU9250_) || (who_am_i_ == WHOAMI_MPU9255_)) {
log("MPU9250 detected");
log("MPU-6500 detected");
} else if (who_am_i_ == WHOAMI_MPU9250_) {
log("MPU-9250 detected");
} else if (who_am_i_ == WHOAMI_MPU9255_) {
log("MPU-9255 detected");
} else {
log("Unknown WHO_AM_I: 0x%02X", who_am_i_);
return false;
Expand Down

0 comments on commit 0ff6929

Please sign in to comment.