mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-27 21:24:07 +08:00
mission: only run update_mission() if mission is updated, not when we want to reset
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
parent
e76c2b6a43
commit
55faa8cb2d
@ -113,8 +113,8 @@ Mission::on_inactive()
|
||||
/* reset the current mission if needed */
|
||||
if (need_to_reset_mission()) {
|
||||
reset_mission(_mission);
|
||||
update_mission();
|
||||
_navigator->reset_cruising_speed();
|
||||
_current_mission_index = 0;
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user