mirror of
https://github.com/esphome/esphome.git
synced 2025-04-15 07:10:33 +01:00
Update esphome/components/mcp4461/mcp4461.h
Co-authored-by: Djordje Mandic <6750655+DjordjeMandic@users.noreply.github.com>
This commit is contained in:
parent
8c7fabe0d6
commit
a70e73340a
@ -70,10 +70,10 @@ class Mcp4461Component : public Component, public i2c::I2CDevice {
|
||||
wiper_1_disabled_(disable_wiper_1),
|
||||
wiper_2_disabled_(disable_wiper_2),
|
||||
wiper_3_disabled_(disable_wiper_3) {
|
||||
this->reg_[0].enabled = !wiper_0_disabled_;
|
||||
this->reg_[1].enabled = !wiper_1_disabled_;
|
||||
this->reg_[2].enabled = !wiper_2_disabled_;
|
||||
this->reg_[3].enabled = !wiper_3_disabled_;
|
||||
this->reg_[0].enabled = !this->wiper_0_disabled_;
|
||||
this->reg_[1].enabled = !this->wiper_1_disabled_;
|
||||
this->reg_[2].enabled = !this->wiper_2_disabled_;
|
||||
this->reg_[3].enabled = !this->wiper_3_disabled_;
|
||||
}
|
||||
/// @brief perform initialisation of component
|
||||
void setup() override;
|
||||
|
Loading…
x
Reference in New Issue
Block a user