mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-01 13:38:38 -04:00
AP_Compass: fixed build warning
This commit is contained in:
parent
7286ffab77
commit
eccc4f375b
@ -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…
Reference in New Issue
Block a user