1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-19 19:52:20 +01:00

Merge pull request #19 from p1ngb4ck/mcp4461_dev

Update mcp4461_output.cpp
This commit is contained in:
Oliver Kleinecke
2025-02-20 13:41:48 +01:00
committed by GitHub

View File

@@ -46,7 +46,7 @@ void Mcp4461Wiper::turn_off() { this->parent_->disable_wiper_(this->wiper_); }
void Mcp4461Wiper::increase_wiper() {
if (this->parent_->increase_wiper_(this->wiper_)) {
this->state_ = this->update_state();
ESP_LOGV(TAG, "Increased wiper %d to %" PRIu16 "", this->wiper_,
ESP_LOGV(TAG, "Increased wiper %hhu to %" PRIu16 "", static_cast<uint8_t>(this->wiper_),
static_cast<uint16_t>(std::roundf(this->state_ * 256)));
}
}
@@ -54,7 +54,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 %d to %" PRIu16 "", this->wiper_,
ESP_LOGV(TAG, "Decreased wiper %hhu to %" PRIu16 "", static_cast<uint8_t>(this->wiper_),
static_cast<uint16_t>(std::roundf(this->state_ * 256)));
}
}