Copter: pass log-performance-bit at init time rather than update time

This commit is contained in:
Peter Barker 2018-02-10 09:37:03 +11:00 committed by Andrew Tridgell
parent c2663fca9e
commit de56ae56e1

View File

@ -187,12 +187,12 @@ void Copter::setup()
init_ardupilot();
// 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)
{
scheduler.update_logging(should_log(MASK_LOG_PM));
scheduler.update_logging();
}
void Copter::loop()