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

View File

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