mirror of
https://github.com/esphome/esphome.git
synced 2025-03-26 04:28:17 +00:00
Update mcp4461.cpp
This commit is contained in:
parent
465cff746b
commit
1bb865b2dd
@ -32,7 +32,7 @@ void Mcp4461Component::begin_() {
|
|||||||
if (this->reg_[i].enabled) {
|
if (this->reg_[i].enabled) {
|
||||||
this->reg_[i].state = this->read_wiper_level_(i);
|
this->reg_[i].state = this->read_wiper_level_(i);
|
||||||
} else {
|
} else {
|
||||||
// only volatile wipers can be disabled
|
// only volatile wipers can be set disabled on hw level
|
||||||
if (i < 4) {
|
if (i < 4) {
|
||||||
this->reg_[i].state = 0;
|
this->reg_[i].state = 0;
|
||||||
Mcp4461WiperIdx wiper_idx;
|
Mcp4461WiperIdx wiper_idx;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user