From 91101aac01ed882f14c791745f18d12f54a7d914 Mon Sep 17 00:00:00 2001 From: murata Date: Tue, 28 Apr 2020 08:02:33 +0900 Subject: [PATCH] AP_BoardConfig: Define a method class AP_BoardConfig: Define a method class --- libraries/AP_BoardConfig/AP_BoardConfig.h | 1 + libraries/AP_BoardConfig/board_drivers.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/AP_BoardConfig/AP_BoardConfig.h b/libraries/AP_BoardConfig/AP_BoardConfig.h index 507dd38db3..f7839b93bd 100644 --- a/libraries/AP_BoardConfig/AP_BoardConfig.h +++ b/libraries/AP_BoardConfig/AP_BoardConfig.h @@ -205,6 +205,7 @@ private: bool spi_check_register(const char *devname, uint8_t regnum, uint8_t value, uint8_t read_flag = 0x80); void validate_board_type(void); void board_autodetect(void); + bool check_ms5611(const char* devname); #endif // AP_FEATURE_BOARD_DETECT diff --git a/libraries/AP_BoardConfig/board_drivers.cpp b/libraries/AP_BoardConfig/board_drivers.cpp index 5eaac1381d..c73d0677eb 100644 --- a/libraries/AP_BoardConfig/board_drivers.cpp +++ b/libraries/AP_BoardConfig/board_drivers.cpp @@ -153,7 +153,7 @@ bool AP_BoardConfig::spi_check_register(const char *devname, uint8_t regnum, uin } #if defined(HAL_VALIDATE_BOARD) -static bool check_ms5611(const char* devname) { +bool AP_BoardConfig::check_ms5611(const char* devname) { auto dev = hal.spi->get_device(devname); if (!dev) { #if SPI_PROBE_DEBUG