From d9e8ce79937e156a8eb683d13d7b0720516950d3 Mon Sep 17 00:00:00 2001 From: Oliver Kleinecke Date: Wed, 5 Feb 2025 00:46:58 +0100 Subject: [PATCH] Update mcp4461.cpp --- esphome/components/mcp4461/mcp4461.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/mcp4461/mcp4461.cpp b/esphome/components/mcp4461/mcp4461.cpp index 0af0474389..25af3437ec 100644 --- a/esphome/components/mcp4461/mcp4461.cpp +++ b/esphome/components/mcp4461/mcp4461.cpp @@ -25,7 +25,7 @@ void Mcp4461Component::begin_() { this->reg_[i].state = this->read_wiper_level_(i); } else { Mcp4461WiperIdx wiper_idx; - wiper_idx = static_cast(i); + wiper_idx = static_cast(i); this->disable_wiper(wiper_idx); } }