dsafa
Dependencies: mbed
Fork of IMU_oo by
Diff: zmu9250.h
- Revision:
- 1:29b8881ac539
- Parent:
- 0:77a7d1a1c6db
--- a/zmu9250.h Sat Dec 03 18:21:47 2016 +0000 +++ b/zmu9250.h Mon Dec 05 09:09:14 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