diff --git a/examples/adc.rs b/examples/adc.rs index d235e88a2..bdd2ec21e 100644 --- a/examples/adc.rs +++ b/examples/adc.rs @@ -24,9 +24,6 @@ fn main() -> anyhow::Result<()> { #[cfg(esp32)] let mut adc = AdcDriver::new(peripherals.adc2, &Config::new().calibration(true))?; - #[cfg(esp_idf_version_major = "4")] - const ATTENUATION: adc_atten_t = attenuation::DB_11; - #[cfg(not(esp_idf_version_major = "4"))] const ATTENUATION: adc_atten_t = attenuation::DB_12; // configuring pin to analog read, you can regulate the adc input voltage range depending on your need