diff --git a/esphome/components/mcp4461/output/mcp4461_output.cpp b/esphome/components/mcp4461/output/mcp4461_output.cpp index 6fdbd4c68c..e403024b57 100644 --- a/esphome/components/mcp4461/output/mcp4461_output.cpp +++ b/esphome/components/mcp4461/output/mcp4461_output.cpp @@ -14,7 +14,8 @@ void Mcp4461Wiper::write_state(float state) { const float max_taps = 256.0; state = state * 1000.0; if (state > max_taps) { - ESP_LOGW(TAG, "Cannot set taps > 0.256 for wiper %" PRIu8 "", clamping to 0.256!", + ESP_LOGW(TAG, "Cannot set taps > 0.256 for wiper %" PRIu8 "", + clamping to 0.256!", static_cast(this->wiper_)); state = 256.0; }