fix(stm32): Align with updated dma::write_repeated signature

This commit is contained in:
Rasmus Melchior Jacobsen 2022-12-23 09:33:34 +01:00
parent da9ee83756
commit 2457fcaa35

View File

@ -473,8 +473,8 @@ impl<'d, T: Instance, Tx, Rx> Spi<'d, T, Tx, Rx> {
let tx_request = self.txdma.request();
let tx_dst = T::REGS.tx_ptr();
let clock_byte = 0x00u8;
let tx_f = crate::dma::write_repeated(&mut self.txdma, tx_request, clock_byte, clock_byte_count, tx_dst);
let clock_byte = [0x00u8];
let tx_f = crate::dma::write_repeated(&mut self.txdma, tx_request, &clock_byte, clock_byte_count, tx_dst);
unsafe {
set_txdmaen(T::REGS, true);