mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 05:41:42 +08:00
FlightTasks: use member function as check for constistency
This commit is contained in:
@@ -166,7 +166,7 @@ int FlightTasks::switchTask(int new_task_index)
|
|||||||
|
|
||||||
void FlightTasks::handleParameterUpdate()
|
void FlightTasks::handleParameterUpdate()
|
||||||
{
|
{
|
||||||
if (_current_task.task) {
|
if (isAnyTaskActive()) {
|
||||||
_current_task.task->handleParameterUpdate();
|
_current_task.task->handleParameterUpdate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user