AP_Scheduler: allow compilation with HAL_LOGGING_ENABLED false

This commit is contained in:
Peter Barker 2023-07-14 10:58:08 +10:00 committed by Andrew Tridgell
parent 330dd7221f
commit 2d3fed9784

View File

@ -420,6 +420,7 @@ void AP_Scheduler::loop()
#endif
}
#if HAL_LOGGING_ENABLED
void AP_Scheduler::update_logging()
{
if (debug_flags()) {
@ -462,6 +463,7 @@ void AP_Scheduler::Log_Write_Performance()
};
AP::logger().WriteCriticalBlock(&pkt, sizeof(pkt));
}
#endif // HAL_LOGGING_ENABLED
// display task statistics as text buffer for @SYS/tasks.txt
void AP_Scheduler::task_info(ExpandingString &str)