1
0
mirror of https://github.com/esphome/esphome.git synced 2025-04-14 06:40:32 +01:00

Update mcp4461_output.h

This commit is contained in:
Oliver Kleinecke 2025-02-04 09:51:05 +01:00 committed by GitHub
parent 12d50f9e8a
commit 6044323543
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,11 +24,11 @@ class Mcp4461Wiper : public output::FloatOutput {
parent->reg_[wiper_idx].enabled = false; parent->reg_[wiper_idx].enabled = false;
parent->disable_terminal(wiper, 'h'); parent->disable_terminal(wiper, 'h');
} }
if (!terminal_a && wiper < 4) if (!terminal_a && wiper_idx < 4)
parent->disable_terminal(wiper, 'a'); parent->disable_terminal(wiper, 'a');
if (!terminal_b && wiper < 4) if (!terminal_b && wiper_idx < 4)
parent->disable_terminal(wiper, 'b'); parent->disable_terminal(wiper, 'b');
if (!terminal_w && wiper < 4) if (!terminal_w && wiper_idx < 4)
parent->disable_terminal(wiper, 'w'); parent->disable_terminal(wiper, 'w');
} }
uint16_t get_wiper_level(); uint16_t get_wiper_level();