32 if (!std::isfinite(voltage) || voltage < 0.5f || voltage > 2.7f) {
33 ESP_LOGE(TAG,
"Invalid voltage %fV for LDO channel %d", voltage, this->
channel_);
36 auto erro = esp_ldo_channel_adjust_voltage(this->
handle_, (
int) (voltage * 1000.0f));
38 ESP_LOGE(TAG,
"Failed to adjust LDO channel %d to voltage %fV: %s", this->
channel_, voltage, esp_err_to_name(erro));