AP_Filesystem: add HAL_UART_STATS_ENABLED to disable stats gathering

This commit is contained in:
Peter Barker 2022-01-08 21:56:52 +11:00 committed by Andrew Tridgell
parent 8d17b8dbe7
commit aaf8de88d8
1 changed files with 2 additions and 0 deletions

View File

@ -105,9 +105,11 @@ int AP_Filesystem_Sys::open(const char *fname, int flags)
if (strcmp(fname, "memory.txt") == 0) {
hal.util->mem_info(*r.str);
}
#if HAL_UART_STATS_ENABLED
if (strcmp(fname, "uarts.txt") == 0) {
hal.util->uart_info(*r.str);
}
#endif
#if HAL_CANMANAGER_ENABLED
if (strcmp(fname, "can_log.txt") == 0) {
AP::can().log_retrieve(*r.str);