From 7e5e25e5cf26c412e2f14f30bbefd6669b0ab429 Mon Sep 17 00:00:00 2001 From: Kris Winer Date: Sat, 30 Jan 2016 12:11:30 -0800 Subject: [PATCH] Update EM7180_LSM9DS0_MS5637_t3.ino Fixed status polling --- EM7180_LSM9DS0_MS5637_t3.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/EM7180_LSM9DS0_MS5637_t3.ino b/EM7180_LSM9DS0_MS5637_t3.ino index 951b110..f621f27 100644 --- a/EM7180_LSM9DS0_MS5637_t3.ino +++ b/EM7180_LSM9DS0_MS5637_t3.ino @@ -655,7 +655,7 @@ void loop() az = (float)accelCount[2]*0.000488; } - if(readByte(EM7180_ADDRESS, EM7180_EventStatus) & 0x20) { // new gyro data available + if(eventStatus & 0x20) { // new gyro data available readSENtralGyroData(gyroCount); // Now we'll calculate the gyro value into actual dps's @@ -664,7 +664,7 @@ void loop() gz = (float)gyroCount[2]*0.153; } - if(readByte(EM7180_ADDRESS, EM7180_EventStatus) & 0x08) { // new mag data available + if(eventStatus & 0x08) { // new mag data available readSENtralMagData(magCount); // Now we'll calculate the mag value into actual G's @@ -673,7 +673,7 @@ void loop() mz = (float)magCount[2]*0.305176; } - if(readByte(EM7180_ADDRESS, EM7180_EventStatus) & 0x04) { // new quaternion data available + if(eventStatus & 0x04) { // new quaternion data available readSENtralQuatData(Quat); } }