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