From f0b51bf45aa1b8111801ce75a82c545144a38817 Mon Sep 17 00:00:00 2001 From: Yury Date: Sun, 26 Jun 2022 22:31:36 +0200 Subject: [PATCH] Allow any MPUs for MPU9250 config --- lib/mpu9250/MPU9250.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mpu9250/MPU9250.cpp b/lib/mpu9250/MPU9250.cpp index 518daaf77..1a6be0951 100644 --- a/lib/mpu9250/MPU9250.cpp +++ b/lib/mpu9250/MPU9250.cpp @@ -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)