Browse Source

AP_Airspeed: fixed a build warning

mission-4.1.18
Andrew Tridgell 11 years ago
parent
commit
c22df0fa60
  1. 2
      libraries/AP_Airspeed/AP_Airspeed.h

2
libraries/AP_Airspeed/AP_Airspeed.h

@ -85,7 +85,7 @@ public: @@ -85,7 +85,7 @@ public:
// return true if airspeed is enabled, and airspeed use is set
bool use(void) const {
return _enable && _use && _offset != 0 && _healthy;
return _enable && _use && _offset > 0 && _healthy;
}
// return true if airspeed is enabled

Loading…
Cancel
Save