kor bork wa cop koy ma

Dependencies:   mbed

Fork of testIMU2_copy2 by OX

Revision:
1:cc3c774c218a
Parent:
0:77a7d1a1c6db
--- a/zmu9250.h	Sat Dec 03 18:21:47 2016 +0000
+++ b/zmu9250.h	Mon Dec 05 08:48:17 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 == 0x73)||(whoami == 0x71)) // WHO_AM_I should always be 0x68
               {  
                 wait(1);
                 this->mpu9250.resetMPU9250(); // Reset registers to default in preparation for device calibration