mirror of
https://github.com/esphome/esphome.git
synced 2024-11-26 08:55:22 +01:00
Remove deprecated adc init call. (#3667)
This commit is contained in:
parent
ed26c57d99
commit
e809488cc0
1 changed files with 0 additions and 4 deletions
|
@ -62,10 +62,6 @@ void ADCSensor::setup() {
|
|||
}
|
||||
}
|
||||
|
||||
// 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) && !defined(USE_ESP32_VARIANT_ESP32S2)
|
||||
adc_gpio_init(ADC_UNIT_1, (adc_channel_t) channel_);
|
||||
#endif
|
||||
#endif // USE_ESP32
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue