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

This commit is contained in:
Peter Barker 2018-02-10 09:37:41 +11:00 committed by Andrew Tridgell
parent 4586b892f2
commit ae958632ec
1 changed files with 2 additions and 2 deletions

View File

@ -89,12 +89,12 @@ void Sub::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 Sub::perf_update(void)
{
scheduler.update_logging(should_log(MASK_LOG_PM));
scheduler.update_logging();
}
void Sub::loop()