mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_BoardConfig: fixed build warning
This commit is contained in:
parent
bb87da628e
commit
764117c336
@ -152,6 +152,7 @@ bool AP_BoardConfig::spi_check_register(const char *devname, uint8_t regnum, uin
|
|||||||
return v == value;
|
return v == value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(HAL_VALIDATE_BOARD)
|
||||||
static bool check_ms5611(const char* devname) {
|
static bool check_ms5611(const char* devname) {
|
||||||
auto dev = hal.spi->get_device(devname);
|
auto dev = hal.spi->get_device(devname);
|
||||||
if (!dev) {
|
if (!dev) {
|
||||||
@ -210,6 +211,7 @@ static bool check_ms5611(const char* devname) {
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
#endif // HAL_VALIDATE_BOARD
|
||||||
|
|
||||||
#define MPUREG_WHOAMI 0x75
|
#define MPUREG_WHOAMI 0x75
|
||||||
#define MPU_WHOAMI_MPU60X0 0x68
|
#define MPU_WHOAMI_MPU60X0 0x68
|
||||||
|
Loading…
Reference in New Issue
Block a user