From 813711e23343cad750640185103b86b471e24703 Mon Sep 17 00:00:00 2001 From: Michael Doppler <76885460+mdop@users.noreply.github.com> Date: Sun, 7 Jul 2024 13:28:21 +0200 Subject: [PATCH] Improve spelling Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> --- esphome/components/mcp3428/mcp3428.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/mcp3428/mcp3428.cpp b/esphome/components/mcp3428/mcp3428.cpp index 5b2a03b0e4..00dd040254 100644 --- a/esphome/components/mcp3428/mcp3428.cpp +++ b/esphome/components/mcp3428/mcp3428.cpp @@ -131,7 +131,7 @@ bool MCP3428Component::poll_result(float &voltage) { } } -float MCP3428Component::convert_anwser_to_voltage_(uint8_t const *anwser) { +float MCP3428Component::convert_answer_to_voltage_(uint8_t const *answer) { uint8_t config_resolution = (this->prev_config_ >> 2) & 0b00000011; uint8_t config_gain = this->prev_config_ & 0b00000011;