From 7b2a99c8a30a1567230b45ea4f4a67fb5d9d5afa Mon Sep 17 00:00:00 2001 From: Magnus Persson Date: Thu, 5 May 2022 17:52:26 +0200 Subject: [PATCH] #73 add support for MPU6500 --- lib/mpu6050/MPU6050.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)