Skip to content

Commit

Permalink
Fix the build for ESP IDF 4.4.X
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Oct 1, 2024
1 parent b9d0ffd commit d12abc9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/spi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,13 @@ impl<'d> SpiDriver<'d> {
sdi: Option<impl Peripheral<P = crate::gpio::Gpio8> + 'd>,
config: &config::DriverConfig,
) -> Result<Self, EspError> {
let max_transfer_size = Self::new_internal(SPI1::device(), Some(sclk), sdo, sdi, config)?;
let max_transfer_size = Self::new_internal(
SPI1::device(),
Some(sclk.into_ref().pin()),
sdo.into_ref().pin(),
sdi.map(|p| p.into_ref().pin()),
config,
)?;

Ok(Self {
host: SPI1::device() as _,
Expand Down

0 comments on commit d12abc9

Please sign in to comment.