mirror of
https://github.com/esp-rs/esp-idf-hal.git
synced 2025-09-27 12:21:02 +00:00
Clippy
This commit is contained in:
parent
d08f558588
commit
ad305a909c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user