mirror of
https://github.com/esphome/esphome.git
synced 2025-04-11 13:20:31 +01:00
Update mcp4461.cpp
This commit is contained in:
parent
b3625ceb55
commit
9a9e312d78
@ -23,7 +23,8 @@ void Mcp4461Component::begin_() {
|
||||
for (uint8_t i = 0; i < 8; i++) {
|
||||
if (this->reg_[i].enabled) {
|
||||
this->reg_[i].state = this->read_wiper_level_(i);
|
||||
} else {
|
||||
} else {
|
||||
this->reg_[i].state = 0;
|
||||
Mcp4461WiperIdx wiper_idx;
|
||||
wiper_idx = static_cast<Mcp4461WiperIdx>(i);
|
||||
this->disable_wiper(wiper_idx);
|
||||
|
Loading…
x
Reference in New Issue
Block a user