AP_Compass: fixed build warning

This commit is contained in:
Andrew Tridgell 2018-04-12 10:07:33 +10:00
parent 7286ffab77
commit eccc4f375b

View File

@ -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;
}