mirror of
https://github.com/esphome/esphome.git
synced 2025-04-13 06:10:30 +01:00
Update mcp4461_output.h
This commit is contained in:
parent
12d50f9e8a
commit
6044323543
@ -24,11 +24,11 @@ class Mcp4461Wiper : public output::FloatOutput {
|
||||
parent->reg_[wiper_idx].enabled = false;
|
||||
parent->disable_terminal(wiper, 'h');
|
||||
}
|
||||
if (!terminal_a && wiper < 4)
|
||||
if (!terminal_a && wiper_idx < 4)
|
||||
parent->disable_terminal(wiper, 'a');
|
||||
if (!terminal_b && wiper < 4)
|
||||
if (!terminal_b && wiper_idx < 4)
|
||||
parent->disable_terminal(wiper, 'b');
|
||||
if (!terminal_w && wiper < 4)
|
||||
if (!terminal_w && wiper_idx < 4)
|
||||
parent->disable_terminal(wiper, 'w');
|
||||
}
|
||||
uint16_t get_wiper_level();
|
||||
|
Loading…
x
Reference in New Issue
Block a user