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