Copter: pass log-performance-bit at init time rather than update time
This commit is contained in:
parent
c2663fca9e
commit
de56ae56e1
@ -187,12 +187,12 @@ void Copter::setup()
|
|||||||
init_ardupilot();
|
init_ardupilot();
|
||||||
|
|
||||||
// initialise the main loop scheduler
|
// initialise the main loop scheduler
|
||||||
scheduler.init(&scheduler_tasks[0], ARRAY_SIZE(scheduler_tasks));
|
scheduler.init(&scheduler_tasks[0], ARRAY_SIZE(scheduler_tasks), MASK_LOG_PM);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Copter::perf_update(void)
|
void Copter::perf_update(void)
|
||||||
{
|
{
|
||||||
scheduler.update_logging(should_log(MASK_LOG_PM));
|
scheduler.update_logging();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Copter::loop()
|
void Copter::loop()
|
||||||
|
Loading…
Reference in New Issue
Block a user