diff options
author | px4dev <px4@purgatory.org> | 2013-07-14 12:40:26 -0700 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2013-07-14 12:40:26 -0700 |
commit | b11e05d614c372c45a3492e2c3b45ab252defced (patch) | |
tree | c6c8071510a088e3b4e94b2bc6a25e56e82db2f8 /src/drivers/px4io/px4io_i2c.cpp | |
parent | f8f6a43feac372c310f3d2444a8533b09e201d6c (diff) | |
download | px4-firmware-b11e05d614c372c45a3492e2c3b45ab252defced.tar.gz px4-firmware-b11e05d614c372c45a3492e2c3b45ab252defced.tar.bz2 px4-firmware-b11e05d614c372c45a3492e2c3b45ab252defced.zip |
Don't build interface drivers we don't have config for.
Diffstat (limited to 'src/drivers/px4io/px4io_i2c.cpp')
-rw-r--r-- | src/drivers/px4io/px4io_i2c.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/drivers/px4io/px4io_i2c.cpp b/src/drivers/px4io/px4io_i2c.cpp index 585b995fe..f561b4359 100644 --- a/src/drivers/px4io/px4io_i2c.cpp +++ b/src/drivers/px4io/px4io_i2c.cpp @@ -50,12 +50,9 @@ #include <arch/board/board.h> -#include <nuttx/i2c.h> - #include <drivers/device/i2c.h> -#include <mavlink/mavlink_log.h> -#include "uploader.h" -#include <modules/px4iofirmware/protocol.h> + +#ifdef PX4_I2C_OBDEV_PX4IO device::Device *PX4IO_i2c_interface(); @@ -77,10 +74,7 @@ private: device::Device *PX4IO_i2c_interface() { -#ifdef PX4_I2C_OBDEV_PX4IO return new PX4IO_I2C(PX4_I2C_BUS_ONBOARD, PX4_I2C_OBDEV_PX4IO); -#endif - return nullptr; } PX4IO_I2C::PX4IO_I2C(int bus, uint8_t address) : @@ -170,3 +164,5 @@ PX4IO_I2C::read(unsigned address, void *data, unsigned count) ret = count; return ret; } + +#endif /* PX4_I2C_OBDEV_PX4IO */
\ No newline at end of file |