From 69681d0ec172478ed94a95bed42b56f87ad39e1e Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Thu, 12 Dec 2024 11:40:30 +0100 Subject: [PATCH] clang-format --- esphome/components/adc/adc_sensor_esp32_v5.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/adc/adc_sensor_esp32_v5.cpp b/esphome/components/adc/adc_sensor_esp32_v5.cpp index 5fe5b35301..6981661204 100644 --- a/esphome/components/adc/adc_sensor_esp32_v5.cpp +++ b/esphome/components/adc/adc_sensor_esp32_v5.cpp @@ -112,12 +112,12 @@ void ADCSensor::setup() { // RISC-V variants and S3 use curve fitting calibration adc_cali_curve_fitting_config_t cali_config = {}; // Zero initialize first #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 3, 0) - cali_config.chan = this->channel_; // Set chan first as it's the first field in v5.3+ + cali_config.chan = this->channel_; #endif // ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 3, 0) cali_config.unit_id = unit_id; cali_config.atten = this->attenuation_; cali_config.bitwidth = ADC_BITWIDTH_DEFAULT; - + err = adc_cali_create_scheme_curve_fitting(&cali_config, &handle); if (err == ESP_OK) { this->calibration_handle_ = handle;