mirror of
https://github.com/esphome/esphome.git
synced 2025-09-26 23:22:21 +01:00
Update mcp4461.cpp
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user