aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/sai
diff options
context:
space:
mode:
authorelagil <[email protected]>2024-11-17 23:56:45 +0100
committerelagil <[email protected]>2024-11-17 23:56:45 +0100
commitee9ca4470370ae9e0e98a54ceb94ec83da20eb19 (patch)
treeefe76feb65ba73dcdc6ebccb4c06e3009036bec0 /embassy-stm32/src/sai
parent7ae28163414d0042c4e06cc02de900e67b62df01 (diff)
refactor: naming of wait functions
Diffstat (limited to 'embassy-stm32/src/sai')
-rw-r--r--embassy-stm32/src/sai/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/sai/mod.rs b/embassy-stm32/src/sai/mod.rs
index fd61e5339..a8d02f825 100644
--- a/embassy-stm32/src/sai/mod.rs
+++ b/embassy-stm32/src/sai/mod.rs
@@ -1009,10 +1009,10 @@ impl<'d, T: Instance, W: word::Word> Sai<'d, T, W> {
1009 /// experiences an overrun of the ring buffer. Then, instead of letting 1009 /// experiences an overrun of the ring buffer. Then, instead of letting
1010 /// the SAI peripheral play the last written buffer over and over again, SAI 1010 /// the SAI peripheral play the last written buffer over and over again, SAI
1011 /// can be muted or dropped instead. 1011 /// can be muted or dropped instead.
1012 pub async fn write_error(&mut self) -> Result<(), Error> { 1012 pub async fn wait_write_error(&mut self) -> Result<(), Error> {
1013 match &mut self.ring_buffer { 1013 match &mut self.ring_buffer {
1014 RingBuffer::Writable(buffer) => { 1014 RingBuffer::Writable(buffer) => {
1015 buffer.write_error().await?; 1015 buffer.wait_write_error().await?;
1016 Ok(()) 1016 Ok(())
1017 } 1017 }
1018 _ => return Err(Error::NotATransmitter), 1018 _ => return Err(Error::NotATransmitter),