check CONFIG_I2C for I2C

This commit is contained in:
Christian Rauch
2018-12-01 14:09:25 +00:00
committed by David Sidrane
parent 8a2e3800d8
commit 0764c76836
+4
View File
@@ -44,6 +44,10 @@
#include <px4_i2c.h>
#if !defined(CONFIG_I2C)
# error I2C support requires CONFIG_I2C
#endif
namespace device __EXPORT
{