mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-25 17:30:34 +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()
|
||||
{
|
||||
if (_current_task.task) {
|
||||
if (isAnyTaskActive()) {
|
||||
_current_task.task->handleParameterUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user