mirror of
https://github.com/esphome/esphome.git
synced 2024-11-21 22:48:10 +01:00
Revert change to i2c component
This commit is contained in:
parent
1bbea5c79b
commit
2810df59e9
1 changed files with 2 additions and 4 deletions
|
@ -139,6 +139,8 @@ class I2CDevice;
|
|||
class I2CMultiplexer;
|
||||
class I2CRegister {
|
||||
public:
|
||||
I2CRegister(I2CDevice *parent, uint8_t a_register) : parent_(parent), register_(a_register) {}
|
||||
|
||||
I2CRegister &operator=(uint8_t value);
|
||||
I2CRegister &operator=(const std::vector<uint8_t> &value);
|
||||
I2CRegister &operator&=(uint8_t value);
|
||||
|
@ -147,10 +149,6 @@ class I2CRegister {
|
|||
uint8_t get();
|
||||
|
||||
protected:
|
||||
friend class I2CDevice;
|
||||
|
||||
I2CRegister(I2CDevice *parent, uint8_t a_register) : parent_(parent), register_(a_register) {}
|
||||
|
||||
I2CDevice *parent_;
|
||||
uint8_t register_;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue