From 444a42c8b0bf45446138bcd61dad624ac61907f5 Mon Sep 17 00:00:00 2001 From: Kris Winer Date: Sat, 30 Jan 2016 12:09:43 -0800 Subject: [PATCH] Update EM7180_LSM9DS0_LPS25H.ino Fixed status polling --- EM7180_LSM9DS0_LPS25H.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/EM7180_LSM9DS0_LPS25H.ino b/EM7180_LSM9DS0_LPS25H.ino index 53fccef..a0cc0fe 100644 --- a/EM7180_LSM9DS0_LPS25H.ino +++ b/EM7180_LSM9DS0_LPS25H.ino @@ -785,7 +785,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 @@ -794,7 +794,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 @@ -803,7 +803,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); }