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:
Silvan Fuhrer 2023-04-19 10:41:12 +02:00 committed by Beat Küng
parent e76c2b6a43
commit 55faa8cb2d

View File

@ -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 {