AC_PrecLand: don't run if not enabled

This commit is contained in:
Jonathan Challinger 2016-07-08 11:47:17 -07:00 committed by Randy Mackay
parent e84d1581ab
commit 8fe0c1b05b
1 changed files with 1 additions and 1 deletions

View File

@ -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();