diff --git a/libraries/AP_TemperatureSensor/AP_TemperatureSensor_MLX90614.cpp b/libraries/AP_TemperatureSensor/AP_TemperatureSensor_MLX90614.cpp index 1659149c0d96dd..c2e34341e66dea 100644 --- a/libraries/AP_TemperatureSensor/AP_TemperatureSensor_MLX90614.cpp +++ b/libraries/AP_TemperatureSensor/AP_TemperatureSensor_MLX90614.cpp @@ -1,9 +1,12 @@ +#include "AP_TemperatureSensor_MLX90614.h" + +#if AP_TEMPERATURE_SENSOR_MLX90614_ENABLED + #include #include #include #include #include -#include "AP_TemperatureSensor_MLX90614.h" extern const AP_HAL::HAL &hal; @@ -64,7 +67,5 @@ uint16_t AP_TemperatureSensor_MLX90614::read_data(uint8_t cmd) { return UINT16_VALUE(val[1],val[0]); } - - - +#endif // AP_TEMPERATURE_SENSOR_MLX90614_ENABLED