1
0
mirror of https://github.com/esphome/esphome.git synced 2025-04-01 08:28:15 +01:00

Update esphome/components/mcp4461/output/mcp4461_output.cpp

Co-authored-by: Djordje Mandic <6750655+DjordjeMandic@users.noreply.github.com>
This commit is contained in:
Oliver Kleinecke 2025-02-07 16:02:35 +01:00 committed by GitHub
parent 5d58b135b1
commit 9b4f3b8dd8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,7 +11,7 @@ static const char *const TAG = "mcp4461.output";
void Mcp4461Wiper::write_state(float state) {
if (this->parent_->is_failed()) {
ESP_LOGW(TAG, "Parent MCP4461 component has failed! Aborting");
ESP_LOGW(TAG, "%s", LOG_STR_ARG(LOG_PARENT_FAILED_STR));
return;
}
uint8_t wiper_idx = static_cast<uint8_t>(this->wiper_);