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