From af4611c05036e0965bc91f99e3efce3731cabb0e Mon Sep 17 00:00:00 2001 From: Jonathan Challinger Date: Tue, 23 Apr 2019 17:24:39 -0700 Subject: [PATCH] AP_BoardConfig: fix unused function error --- libraries/AP_BoardConfig/board_drivers.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_BoardConfig/board_drivers.cpp b/libraries/AP_BoardConfig/board_drivers.cpp index 64181697f1..489acf8eac 100644 --- a/libraries/AP_BoardConfig/board_drivers.cpp +++ b/libraries/AP_BoardConfig/board_drivers.cpp @@ -153,6 +153,7 @@ bool AP_BoardConfig::spi_check_register(const char *devname, uint8_t regnum, uin return v == value; } +#if defined(HAL_CHIBIOS_ARCH_CUBEBLACK) static bool check_ms5611(const char* devname) { auto dev = hal.spi->get_device(devname); if (!dev) { @@ -210,6 +211,7 @@ static bool check_ms5611(const char* devname) { return true; } +#endif #define MPUREG_WHOAMI 0x75 #define MPU_WHOAMI_MPU60X0 0x68