1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 14:43:51 +00:00

Update mcp4461.cpp

This commit is contained in:
Oliver Kleinecke
2025-02-04 13:53:48 +01:00
committed by GitHub
parent abc46a8a32
commit fb591395fd

View File

@@ -31,7 +31,7 @@ void Mcp4461Component::dump_config() {
ESP_LOGCONFIG(TAG, "mcp4461:"); ESP_LOGCONFIG(TAG, "mcp4461:");
LOG_I2C_DEVICE(this); LOG_I2C_DEVICE(this);
for (uint8_t i = 0; i < 8; ++i) { for (uint8_t i = 0; i < 8; ++i) {
ESP_LOGCONFIG(TAG, "Wiper [%" PRIu8 "] level: %" PRIu16, this->reg_[i].state); ESP_LOGCONFIG(TAG, "Wiper [%" PRIu8 "] level: %" PRIu16, i, this->reg_[i].state);
// terminals only valid for volatile wipers 0-3 - enable/disable is terminal hw // terminals only valid for volatile wipers 0-3 - enable/disable is terminal hw
// so also invalid for nonvolatile. For these, only print current level. // so also invalid for nonvolatile. For these, only print current level.
if (i < 4) { if (i < 4) {