From c86a0c8489ff91e1a746f5ea715a7bff73f90fec Mon Sep 17 00:00:00 2001 From: Oliver Kleinecke Date: Tue, 4 Feb 2025 10:13:36 +0100 Subject: [PATCH] Update mcp4461_output.cpp --- esphome/components/mcp4461/output/mcp4461_output.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esphome/components/mcp4461/output/mcp4461_output.cpp b/esphome/components/mcp4461/output/mcp4461_output.cpp index d9bd26004c..7e63f9dc5a 100644 --- a/esphome/components/mcp4461/output/mcp4461_output.cpp +++ b/esphome/components/mcp4461/output/mcp4461_output.cpp @@ -33,7 +33,8 @@ void Mcp4461Wiper::save_level() { ESP_LOGW(TAG, "Cannot save level for nonvolatile wiper %" PRIu8 " !", wiper_idx); return; } - Mcp4461WiperIdx nonvolatile_wiper = wiper_idx + 4; + uint8_t nonvolatile_wiper_idx = wiper_idx + 4; + Mcp4461WiperIdx nonvolatile_wiper = static_cast(nonvolatile_wiper_idx); this->parent_->set_wiper_level(nonvolatile_wiper, this->state_); }