diff --git a/esp-hal/CHANGELOG.md b/esp-hal/CHANGELOG.md index 7cfd91777..b58ca2e51 100644 --- a/esp-hal/CHANGELOG.md +++ b/esp-hal/CHANGELOG.md @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed division by zero in ledc embedded_hal::pwm set_duty_cycle function and converted to set_duty_hw instead of set_duty to eliminate loss of granularity. (#1441) - Embassy examples now build on stable (#1485) - Fix delay on esp32h2 (#1535) +- spi: fix dma wrong mode when using eh1 blocking api (#1541) ### Changed diff --git a/esp-hal/src/spi/master.rs b/esp-hal/src/spi/master.rs index decad746b..d7cbbe3ed 100644 --- a/esp-hal/src/spi/master.rs +++ b/esp-hal/src/spi/master.rs @@ -1614,17 +1614,18 @@ pub mod dma { use super::*; - impl<'d, T, C, M> ErrorType for SpiDma<'d, T, C, M, crate::Async> + impl<'d, T, C, M, DmaMode> ErrorType for SpiDma<'d, T, C, M, DmaMode> where T: InstanceDma, C::Rx<'d>>, C: ChannelTypes, C::P: SpiPeripheral, M: IsFullDuplex, + DmaMode: Mode, { type Error = Error; } - impl<'d, T, C, M> SpiBus for SpiDma<'d, T, C, M, crate::Async> + impl<'d, T, C, M> SpiBus for SpiDma<'d, T, C, M, crate::Blocking> where T: InstanceDma, C::Rx<'d>>, C: ChannelTypes,