Skip to content

Commit

Permalink
fix(ci): demo compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Jul 11, 2024
1 parent 4e6db0f commit dbd6b9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/hpm5300evk/src/bin/qspi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ impl RM67162<'_> {

if data.len() == 0 {
transfer_config.transfer_mode = TransMode::NO_DATA;
self.qspi.blocking_write::<u8>(&[], &transfer_config)?;
self.qspi.blocking_transfer::<u8>(&mut [], &[], &transfer_config)?;
} else {
self.qspi.blocking_write(data, &transfer_config)?;
self.qspi.blocking_transfer(&mut [], data, &transfer_config)?;
}

Ok(())
Expand Down

0 comments on commit dbd6b9e

Please sign in to comment.