Commander: reset print once variable if OA is lost.

Signed-off-by: Claudio Micheli <claudio@auterion.com>
This commit is contained in:
Claudio Micheli 2019-03-14 17:53:39 +01:00 committed by Julian Oes
parent 9966a3d2f8
commit d937a5725b
1 changed files with 1 additions and 0 deletions

View File

@ -3981,6 +3981,7 @@ void Commander::data_link_check(bool &status_changed)
_avoidance_system_lost = true;
mavlink_log_critical(&mavlink_log_pub, "Avoidance system lost");
status_flags.avoidance_system_valid = false;
print_msg_once = false;
}
//if status changed