Interrupts aren't working anymore
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use core::mem::MaybeUninit;
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Copy)]
|
||||
pub struct CircularBuffer<T, const SIZE: usize> {
|
||||
buffer: [MaybeUninit<T>; SIZE],
|
||||
head: usize,
|
||||
@@ -8,6 +8,12 @@ pub struct CircularBuffer<T, const SIZE: usize> {
|
||||
len: usize,
|
||||
}
|
||||
|
||||
impl<T: Copy, const SIZE: usize> Clone for CircularBuffer<T, SIZE> {
|
||||
fn clone(&self) -> Self {
|
||||
*self
|
||||
}
|
||||
}
|
||||
|
||||
impl<T, const SIZE: usize> CircularBuffer<T, SIZE> {
|
||||
pub const fn new() -> Self {
|
||||
Self {
|
||||
|
||||
Reference in New Issue
Block a user