FlightTasks: use forced update just after initialization

This commit is contained in:
Matthias Grob
2018-04-05 07:30:12 +02:00
committed by Beat Küng
parent 737f7df6b8
commit 5efb298ed9
+1 -3
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;
}