This commit is contained in:
ivmarkov 2023-09-18 06:12:09 +00:00
parent 496d42edfa
commit 356f9f8218

View File

@ -28,7 +28,7 @@ fn main() -> anyhow::Result<()> {
};
#[cfg(not(esp32))]
let mut adc_pin = AdcChannelDriver::new(&adc, peripherals.pins.gpio2, config)?;
let mut adc_pin = AdcChannelDriver::new(&adc, peripherals.pins.gpio2, &config)?;
#[cfg(esp32)]
let mut adc_pin = AdcChannelDriver::new(&adc, peripherals.pins.gpio12, config)?;