FlightTasks: use forced update just after initialization

This commit is contained in:
Matthias Grob 2017-11-28 10:59:56 +01:00 committed by Beat Küng
parent 737f7df6b8
commit 5efb298ed9

View File

@ -142,7 +142,7 @@ public:
return -2;
}
_subscription_array.update();
_subscription_array.forcedUpdate(); // make sure data is available for all new subscriptions
if (_current_task->activate()) {
_current_task->~FlightTask();
@ -151,8 +151,6 @@ public:
return -3;
}
_subscription_array.forcedUpdate(); // make sure data is available for all new subscriptions
_current_task_index = task_number;
return 0;
}