mirror of
https://github.com/esphome/esphome.git
synced 2025-04-02 08:58:17 +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) {
|
terminal_w_(terminal_w) {
|
||||||
uint8_t wiper_idx = static_cast<uint8_t>(wiper);
|
uint8_t wiper_idx = static_cast<uint8_t>(wiper);
|
||||||
// update wiper connection state
|
// update wiper connection state
|
||||||
if (!this->enable_ && wiper_idx < 4) {
|
if (!(this->enable_) && wiper_idx < 4) {
|
||||||
parent->reg_[wiper_idx].enabled = false;
|
parent->reg_[wiper_idx].enabled = false;
|
||||||
parent->disable_terminal(wiper, 'h');
|
parent->disable_terminal(wiper, 'h');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user