mirror of https://github.com/ArduPilot/ardupilot
AC_PrecLand: don't run if not enabled
This commit is contained in:
parent
e84d1581ab
commit
8fe0c1b05b
|
@ -83,7 +83,7 @@ void AC_PrecLand::init()
|
|||
void AC_PrecLand::update(float alt_above_terrain_cm)
|
||||
{
|
||||
// run backend update
|
||||
if (_backend != NULL) {
|
||||
if (_backend != NULL && _enabled) {
|
||||
// read from sensor
|
||||
_backend->update();
|
||||
|
||||
|
|
Loading…
Reference in New Issue