mask deprecated adc_gpio_init() for esp32-s2 (#3445)

This commit is contained in:
MFlasskamp 2022-05-10 07:16:16 +02:00 committed by GitHub
parent d9caab4108
commit d685fdf54a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -51,8 +51,8 @@ void ADCSensor::setup() {
} }
} }
// adc_gpio_init doesn't exist on ESP32-C3 or ESP32-H2 // adc_gpio_init doesn't exist on ESP32-S2, ESP32-C3 or ESP32-H2
#if !defined(USE_ESP32_VARIANT_ESP32C3) && !defined(USE_ESP32_VARIANT_ESP32H2) #if !defined(USE_ESP32_VARIANT_ESP32C3) && !defined(USE_ESP32_VARIANT_ESP32H2) && !defined(USE_ESP32_VARIANT_ESP32S2)
adc_gpio_init(ADC_UNIT_1, (adc_channel_t) channel_); adc_gpio_init(ADC_UNIT_1, (adc_channel_t) channel_);
#endif #endif
#endif // USE_ESP32 #endif // USE_ESP32