diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-16 08:54:17 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-07-16 08:54:17 +0200 |
commit | da4967e8e4256a31550a10090cbf6bfc12166b61 (patch) | |
tree | 610244d8d050e1622403708141cd96f753f3013f | |
parent | 23dd7e752d4760a13e90ec7ed6cf003e56c4baff (diff) | |
download | px4-firmware-da4967e8e4256a31550a10090cbf6bfc12166b61.tar.gz px4-firmware-da4967e8e4256a31550a10090cbf6bfc12166b61.tar.bz2 px4-firmware-da4967e8e4256a31550a10090cbf6bfc12166b61.zip |
I2C driver: forbid copy constructor
-rw-r--r-- | src/drivers/device/i2c.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/device/i2c.h b/src/drivers/device/i2c.h index 549879352..705b398b0 100644 --- a/src/drivers/device/i2c.h +++ b/src/drivers/device/i2c.h @@ -138,6 +138,9 @@ private: uint16_t _address; uint32_t _frequency; struct i2c_dev_s *_dev; + + I2C(const device::I2C&); + I2C operator=(const device::I2C&); }; } // namespace device |