1
0
mirror of https://github.com/esphome/esphome.git synced 2025-04-02 17:08:17 +01:00

Update mcp4461.cpp

This commit is contained in:
Oliver Kleinecke 2025-02-05 00:46:58 +01:00 committed by GitHub
parent 0583343cc1
commit d9e8ce7993
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,7 @@ void Mcp4461Component::begin_() {
this->reg_[i].state = this->read_wiper_level_(i); this->reg_[i].state = this->read_wiper_level_(i);
} else { } else {
Mcp4461WiperIdx wiper_idx; Mcp4461WiperIdx wiper_idx;
wiper_idx = static_cast<uint8_t>(i); wiper_idx = static_cast<Mcp4461WiperIdx>(i);
this->disable_wiper(wiper_idx); this->disable_wiper(wiper_idx);
} }
} }