mirror of
https://github.com/esphome/esphome.git
synced 2025-04-02 08:58:17 +01:00
Update mcp4461.cpp
This commit is contained in:
parent
3232bb795a
commit
ca12ca8618
@ -23,8 +23,11 @@ void Mcp4461Component::begin_() {
|
|||||||
for (uint8_t i = 0; i < 8; i++) {
|
for (uint8_t i = 0; i < 8; i++) {
|
||||||
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 {
|
||||||
|
Mcp4461WiperIdx wiper_idx;
|
||||||
|
wiper_idx = static_cast<uint8_t>(i);
|
||||||
|
this->disable_wiper(wiper_idx);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Mcp4461Component::dump_config() {
|
void Mcp4461Component::dump_config() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user