diff --git a/src/lib/drivers/device/nuttx/I2C.hpp b/src/lib/drivers/device/nuttx/I2C.hpp index 70383b5c3508736394dbb1ad76750f9d7ce37cd7..affbf00c4d7ae1d2e7e8f80f7221e192113837ae 100644 --- a/src/lib/drivers/device/nuttx/I2C.hpp +++ b/src/lib/drivers/device/nuttx/I2C.hpp @@ -44,6 +44,10 @@ #include <px4_i2c.h> +#if !defined(CONFIG_I2C) +# error I2C support requires CONFIG_I2C +#endif + namespace device __EXPORT {