Skip to content

Commit fcbd4ff

Browse files
authored
Fix MPU-6500 cannot connect (SlimeVR#173)
1 parent 61b94b9 commit fcbd4ff

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/mpu6050/MPU6050.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,12 @@ void MPU6050::initialize(uint8_t address) {
6767
*/
6868
bool MPU6050::testConnection() {
6969
uint8_t deviceId = getDeviceID();
70-
return deviceId == 0x68 || deviceId == 0x70 || deviceId == 0x71 || deviceId == 0x73; // Allow any MPUs
70+
// 0x68 -> MPU-6050
71+
// 0x70 -> MPU-6500
72+
// 0x71 -> MPU-9250
73+
// 0x73 -> MPU-9255
74+
// 0x74 -> MPU-6515
75+
return deviceId == 0x68 || deviceId == 0x70 || deviceId == 0x71 || deviceId == 0x73 || deviceId == 0x74;
7176
}
7277

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

0 commit comments

Comments
 (0)