mirror of
https://github.com/esphome/esphome.git
synced 2025-04-11 05:10:34 +01:00
Update mcp4461.cpp
This commit is contained in:
parent
abc46a8a32
commit
fb591395fd
@ -31,7 +31,7 @@ void Mcp4461Component::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "mcp4461:");
|
||||
LOG_I2C_DEVICE(this);
|
||||
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
|
||||
// so also invalid for nonvolatile. For these, only print current level.
|
||||
if (i < 4) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user