From 3287f929a3d9fb79eceed7ea4d99d459587868af Mon Sep 17 00:00:00 2001 From: Kris Winer Date: Sat, 30 Jan 2016 12:08:05 -0800 Subject: [PATCH] Update EM7180_BMX055_MS5637_BasicAHRS_t3.ino Fixed status polling --- EM7180_BMX055_MS5637_BasicAHRS_t3.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EM7180_BMX055_MS5637_BasicAHRS_t3.ino b/EM7180_BMX055_MS5637_BasicAHRS_t3.ino index 2963805..6331262 100644 --- a/EM7180_BMX055_MS5637_BasicAHRS_t3.ino +++ b/EM7180_BMX055_MS5637_BasicAHRS_t3.ino @@ -736,7 +736,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 @@ -745,7 +745,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