AP_BoardConfig: Define a method class
AP_BoardConfig: Define a method class
This commit is contained in:
parent
d9358b4ac2
commit
91101aac01
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user