1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-13 22:28:14 +00:00

Update esphome/components/mcp4461/output/mcp4461_output.cpp

Co-authored-by: Djordje Mandic <6750655+DjordjeMandic@users.noreply.github.com>
This commit is contained in:
Oliver Kleinecke 2025-02-20 16:24:41 +01:00 committed by GitHub
parent c697e032c7
commit d24a8505a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,7 +55,7 @@ void Mcp4461Wiper::increase_wiper() {
void Mcp4461Wiper::decrease_wiper() {
if (this->parent_->decrease_wiper_(this->wiper_)) {
this->state_ = this->update_state();
ESP_LOGV(TAG, "Decreased wiper %hhu to %" PRIu16 "", static_cast<uint8_t>(this->wiper_),
ESP_LOGV(TAG, "Decreased wiper %" PRIu8 " to %" PRIu16 "", static_cast<uint8_t>(this->wiper_),
static_cast<uint16_t>(std::roundf(this->state_ * 256)));
}
}