Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
liebman committed Sep 19, 2024
1 parent 68f076a commit 62381cf
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions esp-hal/src/dma/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,9 @@ use enumset::{EnumSet, EnumSetType};
pub use self::gdma::*;
#[cfg(pdma)]
pub use self::pdma::*;
use crate::{
interrupt::InterruptHandler,
soc::{is_slice_in_dram, is_slice_in_psram},
Mode,
};
#[cfg(esp32s3)]
use crate::soc::is_slice_in_psram;
use crate::{interrupt::InterruptHandler, soc::is_slice_in_dram, Mode};

#[cfg(gdma)]
mod gdma;
Expand Down Expand Up @@ -1789,7 +1787,7 @@ where
}
} else {
// we insure that block_size is some only for PSRAM addresses
if preperation.block_size.is_some() {
if preparation.block_size.is_some() {
return Err(DmaError::UnsupportedMemoryRegion);
}
}
Expand Down

0 comments on commit 62381cf

Please sign in to comment.