new

Dependencies:   mbed

Revision:
1:6bc2c5d68446
Parent:
0:77a7d1a1c6db
--- a/zmu9250.h	Sat Dec 03 18:21:47 2016 +0000
+++ b/zmu9250.h	Sun Dec 04 09:19:53 2016 +0000
@@ -18,7 +18,7 @@
               
               // Read the WHO_AM_I register, this is a good test of communication
               uint8_t whoami = this->mpu9250.readByte(MPU9250_ADDRESS, WHO_AM_I_MPU9250);  // Read WHO_AM_I register for MPU-9250
-              if (whoami == 0x71) // WHO_AM_I should always be 0x68
+              if ((whoami == 0x71)||(whoami == 0x73)) // WHO_AM_I should always be 0x68
               {  
                 wait(1);
                 this->mpu9250.resetMPU9250(); // Reset registers to default in preparation for device calibration