Browse Source

Update EM7180_MPU9250+BMP280.ino

master
Kris Winer 9 years ago committed by GitHub
parent
commit
5fcf6b5897
  1. 2
      EM7180_MPU9250+BMP280.ino

2
EM7180_MPU9250+BMP280.ino

@ -762,7 +762,7 @@ void loop()
if(eventStatus & 0x02) { // error detected, what is it? if(eventStatus & 0x02) { // error detected, what is it?
uint8_t errorStatus = readByte(EM7180_ADDRESS, EM7180_ErrorRegister); 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); Serial.print(" EM7180 sensor status = "); Serial.println(errorStatus);
if(errorStatus == 0x11) Serial.print("Magnetometer failure!"); if(errorStatus == 0x11) Serial.print("Magnetometer failure!");
if(errorStatus == 0x12) Serial.print("Accelerometer failure!"); if(errorStatus == 0x12) Serial.print("Accelerometer failure!");

Loading…
Cancel
Save