diff --git a/libraries/AP_BoardConfig/board_drivers.cpp b/libraries/AP_BoardConfig/board_drivers.cpp index 489acf8eac..e929857d5f 100644 --- a/libraries/AP_BoardConfig/board_drivers.cpp +++ b/libraries/AP_BoardConfig/board_drivers.cpp @@ -19,7 +19,7 @@ #include #include "AP_BoardConfig.h" #include -#include +#include #include extern const AP_HAL::HAL& hal; @@ -198,7 +198,7 @@ static bool check_ms5611(const char* devname) { uint16_t crc_read = prom[7]&0xf; prom[7] &= 0xff00; - if (crc_read != AP_Baro_MS56XX::crc4(prom) || all_zero) { + if (crc_read != crc_crc4(prom) || all_zero) { #if SPI_PROBE_DEBUG hal.console->printf("%s: crc fail\n", devname); #endif