From dbd6b9eb5e418258a2ad1a5b326563334219be99 Mon Sep 17 00:00:00 2001 From: Andelf Date: Fri, 12 Jul 2024 00:47:48 +0800 Subject: [PATCH] fix(ci): demo compile error --- examples/hpm5300evk/src/bin/qspi.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(())