Skip to content

Commit

Permalink
Allow any MPUs for MPU9250 config
Browse files Browse the repository at this point in the history
  • Loading branch information
deiteris committed Oct 8, 2022
1 parent cacfd37 commit f0b51bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mpu9250/MPU9250.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ uint8_t MPU9250_Base::getAddr() {
*/
bool MPU9250_Base::testConnection() {
uint8_t deviceId = getDeviceID();
return deviceId == 0x71 || deviceId == 0x73; // MPU9250 or MPU9255
return deviceId == 0x68 || deviceId == 0x70 || deviceId == 0x71 || deviceId == 0x73; // Allow any MPUs
}

// AUX_VDDIO register (InvenSense demo code calls this RA_*G_OFFS_TC)
Expand Down

0 comments on commit f0b51bf

Please sign in to comment.