1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-01 00:08:15 +00:00

Keep idf v4 code unchanged

This commit is contained in:
Edward Firmo 2024-12-12 00:04:12 +01:00
parent 36b5b58884
commit 051b52ad86
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@
namespace esphome { namespace esphome {
namespace adc { 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_bits_width_t>(ADC_WIDTH_MAX - 1); static const adc_bits_width_t ADC_WIDTH_MAX_SOC_BITS = static_cast<adc_bits_width_t>(ADC_WIDTH_MAX - 1);
@ -75,7 +75,7 @@ void ADCSensor::dump_config() {
case ADC_ATTEN_DB_12_COMPAT: case ADC_ATTEN_DB_12_COMPAT:
ESP_LOGCONFIG(TAG, " Attenuation: 12db"); ESP_LOGCONFIG(TAG, " Attenuation: 12db");
break; break;
default: default: // This is to satisfy the unused ADC_ATTEN_MAX
break; break;
} }
} }

View File

@ -8,7 +8,7 @@
namespace esphome { namespace esphome {
namespace adc { namespace adc {
static const char *const TAG = "adc.esp32.v5"; static const char *const TAG = "adc.esp32";
void ADCSensor::setup() { void ADCSensor::setup() {
ESP_LOGCONFIG(TAG, "Setting up ADC '%s'...", this->get_name().c_str()); ESP_LOGCONFIG(TAG, "Setting up ADC '%s'...", this->get_name().c_str());