mirror of
https://github.com/esphome/esphome.git
synced 2025-03-24 11:38:23 +00:00
Update mcp4461_output.cpp
This commit is contained in:
parent
4a339f6106
commit
69e291c53b
@ -40,8 +40,8 @@ void Mcp4461Wiper::write_state(float state) {
|
||||
uint16_t Mcp4461Wiper::read_state() { return this->parent_->get_wiper_level_(this->wiper_); }
|
||||
|
||||
uint16_t Mcp4461Wiper::update_state() {
|
||||
this->state = this->read_state(this->wiper_);
|
||||
return this->state
|
||||
this->state_ = this->read_state(this->wiper_);
|
||||
return this->state_;
|
||||
}
|
||||
|
||||
void Mcp4461Wiper::save_level() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user