1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-01 17:42:22 +01:00

Update mcp4461_output.cpp

This commit is contained in:
Oliver Kleinecke
2025-02-05 15:22:56 +01:00
committed by GitHub
parent 80804398d0
commit ccc13520cd

View File

@@ -30,7 +30,7 @@ void Mcp4461Wiper::set_initial_value(float initial_value) {
this->initial_value_ = initial_value; this->initial_value_ = initial_value;
// Use the value // Use the value
ESP_LOGCONFIG(TAG, "Setting initial value %.3f", this->initial_value_); ESP_LOGCONFIG(TAG, "Setting initial value %.3f", this->initial_value_);
this->_parent->set_wiper_level(wiper, this->initial_value_); this->_parent->set_wiper_level(this->wiper_, this->initial_value_);
} else { } else {
ESP_LOGCONFIG(TAG, "No (valid) initial value set, retaining previous wiper level."); ESP_LOGCONFIG(TAG, "No (valid) initial value set, retaining previous wiper level.");
} }