diff --git a/src/modules/navigator/precland.cpp b/src/modules/navigator/precland.cpp index a3494232e907..7bf2c76ed69f 100644 --- a/src/modules/navigator/precland.cpp +++ b/src/modules/navigator/precland.cpp @@ -106,7 +106,9 @@ void PrecLand::on_active() { // get new target measurement - if (_target_pose_sub.update(&_target_pose)) { + _target_pose_updated = _target_pose_sub.update(&_target_pose); + + if (_target_pose_updated) { _target_pose_valid = true; }