From ae184a0682c7b2263b8f87a73d599d3300d616a1 Mon Sep 17 00:00:00 2001 From: armando Date: Fri, 29 Aug 2025 15:21:20 +0800 Subject: [PATCH] change(adc): improve oneshot example channel selection --- .../peripherals/adc/oneshot_read/main/oneshot_read_main.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/examples/peripherals/adc/oneshot_read/main/oneshot_read_main.c b/examples/peripherals/adc/oneshot_read/main/oneshot_read_main.c index ba51131c86..5990a7e3ee 100644 --- a/examples/peripherals/adc/oneshot_read/main/oneshot_read_main.c +++ b/examples/peripherals/adc/oneshot_read/main/oneshot_read_main.c @@ -38,11 +38,7 @@ const static char *TAG = "EXAMPLE"; #if EXAMPLE_USE_ADC2 //ADC2 Channels -#if CONFIG_IDF_TARGET_ESP32 #define EXAMPLE_ADC2_CHAN0 ADC_CHANNEL_0 -#else -#define EXAMPLE_ADC2_CHAN0 ADC_CHANNEL_0 -#endif #endif //#if EXAMPLE_USE_ADC2 #define EXAMPLE_ADC_ATTEN ADC_ATTEN_DB_12