diff --git a/examples/hpm5300evk/src/bin/qspi.rs b/examples/hpm5300evk/src/bin/qspi.rs index c3a289b..88779af 100644 --- a/examples/hpm5300evk/src/bin/qspi.rs +++ b/examples/hpm5300evk/src/bin/qspi.rs @@ -108,9 +108,9 @@ impl RM67162<'_> { if data.len() == 0 { transfer_config.transfer_mode = TransMode::NO_DATA; - self.qspi.blocking_write::(&[], &transfer_config)?; + self.qspi.blocking_transfer::(&mut [], &[], &transfer_config)?; } else { - self.qspi.blocking_write(data, &transfer_config)?; + self.qspi.blocking_transfer(&mut [], data, &transfer_config)?; } Ok(())