From 051b52ad86b738d2dcf062e3cfa0bc08cbc91d0c Mon Sep 17 00:00:00 2001 From: Edward Firmo <94725493+edwardtfn@users.noreply.github.com> Date: Thu, 12 Dec 2024 00:04:12 +0100 Subject: [PATCH] Keep idf v4 code unchanged --- esphome/components/adc/adc_sensor_esp32_v4.cpp | 4 ++-- esphome/components/adc/adc_sensor_esp32_v5.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/esphome/components/adc/adc_sensor_esp32_v4.cpp b/esphome/components/adc/adc_sensor_esp32_v4.cpp index 9aae11d4ca..a9fe4d3216 100644 --- a/esphome/components/adc/adc_sensor_esp32_v4.cpp +++ b/esphome/components/adc/adc_sensor_esp32_v4.cpp @@ -8,7 +8,7 @@ namespace esphome { namespace adc { -static const char *const TAG = "adc.esp32.v4"; +static const char *const TAG = "adc.esp32"; static const adc_bits_width_t ADC_WIDTH_MAX_SOC_BITS = static_cast(ADC_WIDTH_MAX - 1); @@ -75,7 +75,7 @@ void ADCSensor::dump_config() { case ADC_ATTEN_DB_12_COMPAT: ESP_LOGCONFIG(TAG, " Attenuation: 12db"); break; - default: + default: // This is to satisfy the unused ADC_ATTEN_MAX break; } } diff --git a/esphome/components/adc/adc_sensor_esp32_v5.cpp b/esphome/components/adc/adc_sensor_esp32_v5.cpp index e95a7a6c35..6da0ea307c 100644 --- a/esphome/components/adc/adc_sensor_esp32_v5.cpp +++ b/esphome/components/adc/adc_sensor_esp32_v5.cpp @@ -8,7 +8,7 @@ namespace esphome { namespace adc { -static const char *const TAG = "adc.esp32.v5"; +static const char *const TAG = "adc.esp32"; void ADCSensor::setup() { ESP_LOGCONFIG(TAG, "Setting up ADC '%s'...", this->get_name().c_str());