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:
parent
5d58b135b1
commit
9b4f3b8dd8
@ -11,7 +11,7 @@ static const char *const TAG = "mcp4461.output";
|
|||||||
|
|
||||||
void Mcp4461Wiper::write_state(float state) {
|
void Mcp4461Wiper::write_state(float state) {
|
||||||
if (this->parent_->is_failed()) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
uint8_t wiper_idx = static_cast<uint8_t>(this->wiper_);
|
uint8_t wiper_idx = static_cast<uint8_t>(this->wiper_);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user