mirror of
https://github.com/esphome/esphome.git
synced 2025-04-01 08:28:15 +01:00
Update mcp4461_output.h
This commit is contained in:
parent
0524e0b96f
commit
b9a6869573
@ -20,7 +20,7 @@ class Mcp4461Wiper : public output::FloatOutput {
|
||||
terminal_w_(terminal_w) {
|
||||
uint8_t wiper_idx = static_cast<uint8_t>(wiper);
|
||||
// update wiper connection state
|
||||
if (!this->enable_ && wiper_idx < 4) {
|
||||
if (!(this->enable_) && wiper_idx < 4) {
|
||||
parent->reg_[wiper_idx].enabled = false;
|
||||
parent->disable_terminal(wiper, 'h');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user