From cd84dea6719ff80a36ad115da003294a37a252cf Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Wed, 11 Dec 2024 12:29:51 +0100 Subject: [PATCH] clang-format --- esphome/components/adc/adc_sensor_esp32_v5.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/esphome/components/adc/adc_sensor_esp32_v5.cpp b/esphome/components/adc/adc_sensor_esp32_v5.cpp index 54d2135aa7..d963779a41 100644 --- a/esphome/components/adc/adc_sensor_esp32_v5.cpp +++ b/esphome/components/adc/adc_sensor_esp32_v5.cpp @@ -62,16 +62,16 @@ void ADCSensor::setup() { 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+ -#endif // ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 3, 0) +#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; - + if (adc_cali_create_scheme_curve_fitting(&cali_config, &handle) == ESP_OK) { this->calibration_handle_ = handle; ESP_LOGV(TAG, "Using curve fitting calibration"); } -#else // USE_ESP32_VARIANT_ESP32C3 || ESP32C6 || ESP32S3 || ESP32H2 +#else // USE_ESP32_VARIANT_ESP32C3 || ESP32C6 || ESP32S3 || ESP32H2 // Other ESP32 variants use line fitting calibration adc_cali_line_fitting_config_t cali_config = { .unit_id = unit_id,