1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-24 11:38:23 +00:00

Update mcp4461_output.cpp

This commit is contained in:
Oliver Kleinecke 2025-02-09 17:32:34 +01:00 committed by GitHub
parent 69e291c53b
commit 8ad2cbf439
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,10 +66,6 @@ void Mcp4461Wiper::enable_wiper() {
return;
}
uint8_t wiper_idx = static_cast<uint8_t>(this->wiper_);
if (wiper_idx > 3) {
ESP_LOGW(TAG, "Cannot enable nonvolatile wiper %" PRIu8 " !", wiper_idx);
return;
}
this->parent_->enable_wiper_(this->wiper_);
}
@ -79,10 +75,6 @@ void Mcp4461Wiper::disable_wiper() {
return;
}
uint8_t wiper_idx = static_cast<uint8_t>(this->wiper_);
if (wiper_idx > 3) {
ESP_LOGW(TAG, "Cannot disable nonvolatile wiper %" PRIu8 " !", wiper_idx);
return;
}
this->parent_->disable_wiper_(this->wiper_);
}