Browse Source

ArduPlane: Do not use is_zero() for non-float types

master
dgrat 9 years ago committed by Lucas De Marchi
parent
commit
48c243bed0
  1. 2
      ArduPlane/system.cpp

2
ArduPlane/system.cpp

@ -167,7 +167,7 @@ void Plane::init_ardupilot() @@ -167,7 +167,7 @@ void Plane::init_ardupilot()
if (g.compass_enabled==true) {
bool compass_ok = compass.init() && compass.read();
#if HIL_SUPPORT
if (!is_zero(g.hil_mode)) {
if (g.hil_mode != 0) {
compass_ok = true;
}
#endif

Loading…
Cancel
Save