From 5fcf6b5897bd1e07749134b70c2f1c3c5a784676 Mon Sep 17 00:00:00 2001 From: Kris Winer Date: Sun, 24 Jul 2016 13:10:03 -0700 Subject: [PATCH] Update EM7180_MPU9250+BMP280.ino --- EM7180_MPU9250+BMP280.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EM7180_MPU9250+BMP280.ino b/EM7180_MPU9250+BMP280.ino index cf2072c..84e0fd4 100644 --- a/EM7180_MPU9250+BMP280.ino +++ b/EM7180_MPU9250+BMP280.ino @@ -762,7 +762,7 @@ void loop() if(eventStatus & 0x02) { // error detected, what is it? uint8_t errorStatus = readByte(EM7180_ADDRESS, EM7180_ErrorRegister); - if(!errorStatus) { + if(errorStatus != 0x00) { // non-zero value indicates error, what is it? Serial.print(" EM7180 sensor status = "); Serial.println(errorStatus); if(errorStatus == 0x11) Serial.print("Magnetometer failure!"); if(errorStatus == 0x12) Serial.print("Accelerometer failure!");