Skip to content

Commit

Permalink
Allow to use any MPU in 6050 mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Eirenliel committed Jan 27, 2022
1 parent f778601 commit f103959
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mpu6050/MPU6050.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void MPU6050::initialize(uint8_t address) {
* @return True if connection is valid, false otherwise
*/
bool MPU6050::testConnection() {
return getDeviceID() == 0x34;
return getDeviceID() > 0;
}

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

0 comments on commit f103959

Please sign in to comment.