1
0
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:
Oliver Kleinecke 2025-02-05 00:54:38 +01:00 committed by GitHub
parent 0524e0b96f
commit b9a6869573
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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');
}