Browse Source

AP_Compass: fixed bitmask typo

master
Andrew Tridgell 8 years ago
parent
commit
a0e4ec0f3a
  1. 2
      libraries/AP_Compass/AP_Compass_QMC5883L.cpp

2
libraries/AP_Compass/AP_Compass_QMC5883L.cpp

@ -151,7 +151,7 @@ void AP_Compass_QMC5883L::timer() @@ -151,7 +151,7 @@ void AP_Compass_QMC5883L::timer()
return;
}
//new data is ready
if(!status & 0x04){
if (!(status & 0x04)) {
return;
}

Loading…
Cancel
Save