From b9a68695734a61fbfe607345034a24a6f12aecf1 Mon Sep 17 00:00:00 2001 From: Oliver Kleinecke Date: Wed, 5 Feb 2025 00:54:38 +0100 Subject: [PATCH] Update mcp4461_output.h --- esphome/components/mcp4461/output/mcp4461_output.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/mcp4461/output/mcp4461_output.h b/esphome/components/mcp4461/output/mcp4461_output.h index d898bd0ed7..bb5c9ddbd9 100644 --- a/esphome/components/mcp4461/output/mcp4461_output.h +++ b/esphome/components/mcp4461/output/mcp4461_output.h @@ -20,7 +20,7 @@ class Mcp4461Wiper : public output::FloatOutput { terminal_w_(terminal_w) { uint8_t wiper_idx = static_cast(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'); }