diff --git a/lib/mpu6050/MPU6050.cpp b/lib/mpu6050/MPU6050.cpp index ecdfe04..4467c12 100644 --- a/lib/mpu6050/MPU6050.cpp +++ b/lib/mpu6050/MPU6050.cpp @@ -66,7 +66,7 @@ void MPU6050_Base::initialize() { * @return True if connection is valid, false otherwise */ bool MPU6050_Base::testConnection() { - return getDeviceID() == 0x34; + return getDeviceID() == 0x34 || getDeviceID() == 0x38; // Allow both MPU6050 and MPU6000 } // AUX_VDDIO register (InvenSense demo code calls this RA_*G_OFFS_TC)