Fix the build for ESP IDF 4.4.X

This commit is contained in:
ivmarkov 2024-10-01 06:46:23 +00:00
parent b532ea6a78
commit 6c06991062

View File

@ -437,6 +437,8 @@ impl<'d> SpiDriver<'d> {
sdi: Option<impl Peripheral<P = crate::gpio::Gpio8> + 'd>,
config: &config::DriverConfig,
) -> Result<Self, EspError> {
use crate::gpio::Pin;
let max_transfer_size = Self::new_internal(
SPI1::device(),
Some(sclk.into_ref().pin()),