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