AP_BoardConfig: Define a method class

AP_BoardConfig: Define a method class
This commit is contained in:
murata 2020-04-28 08:02:33 +09:00 committed by Andrew Tridgell
parent d9358b4ac2
commit 91101aac01
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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