mirror of https://github.com/ArduPilot/ardupilot
AP_Filesystem: add HAL_UART_STATS_ENABLED to disable stats gathering
This commit is contained in:
parent
8d17b8dbe7
commit
aaf8de88d8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue