stm32: Automatically clear on WritableRingBuffer start

This commit is contained in:
Alexandros Liarokapis 2024-10-07 23:12:35 +03:00
parent 4f810e47f5
commit 28d03537e9

View File

@ -980,7 +980,8 @@ impl<'a, W: Word> WritableRingBuffer<'a, W> {
///
/// You must call this after creating it for it to work.
pub fn start(&mut self) {
self.channel.start()
self.channel.start();
self.clear();
}
/// Clear all data in the ring buffer.