Browse Source

AP_Compass: fixed build warning

mission-4.1.18
Andrew Tridgell 7 years ago
parent
commit
eccc4f375b
  1. 2
      libraries/AP_Compass/AP_Compass_Backend.cpp

2
libraries/AP_Compass/AP_Compass_Backend.cpp

@ -164,7 +164,7 @@ bool AP_Compass_Backend::field_ok(const Vector3f &field) @@ -164,7 +164,7 @@ bool AP_Compass_Backend::field_ok(const Vector3f &field)
}
const float range = (float)_compass.get_filter_range();
if (range == 0) {
if (range <= 0) {
return true;
}

Loading…
Cancel
Save