1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-25 20:18:15 +00:00

Update mcp4461_output.cpp

This commit is contained in:
Oliver Kleinecke 2025-02-09 17:27:22 +01:00 committed by GitHub
parent b9892aa72d
commit 4a339f6106
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -39,7 +39,10 @@ void Mcp4461Wiper::write_state(float state) {
uint16_t Mcp4461Wiper::read_state() { return this->parent_->get_wiper_level_(this->wiper_); }
void Mcp4461Wiper::update_state() { this->state = this->read_state(this->wiper_); }
uint16_t Mcp4461Wiper::update_state() {
this->state = this->read_state(this->wiper_);
return this->state
}
void Mcp4461Wiper::save_level() {
if (this->parent_->is_failed()) {