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