From 8c6e615ff076af75703492aeb454b4db7f30498d Mon Sep 17 00:00:00 2001 From: Oliver Kleinecke Date: Mon, 3 Feb 2025 12:17:05 +0100 Subject: [PATCH] Update esphome/components/mcp4461/mcp4461.cpp Co-authored-by: Djordje Mandic <6750655+DjordjeMandic@users.noreply.github.com> --- 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 a9e46d49c5..aa26bc665b 100644 --- a/esphome/components/mcp4461/mcp4461.cpp +++ b/esphome/components/mcp4461/mcp4461.cpp @@ -60,7 +60,7 @@ void Mcp4461Component::loop() { } uint8_t new_terminal_value = this->calc_terminal_connector_byte_(terminal_connector); if (new_terminal_value != this->get_terminal_register(terminal_connector)) { - ESP_LOGV(TAG, "updating terminal %d to new value %d", (uint8_t) terminal_connector, new_terminal_value); + ESP_LOGV(TAG, "updating terminal %" PRIu8 " to new value %" PRIu8, static_cast(terminal_connector), new_terminal_value); this->set_terminal_register(terminal_connector, new_terminal_value); } }