nrf5/sdk: Updating ringbuffer.h to use volatile variables for start and end.
This commit is contained in:
parent
d057a93675
commit
235c0edacb
@ -67,8 +67,8 @@
|
||||
#define ringBuffer_typedef(T, NAME) \
|
||||
typedef struct { \
|
||||
int size; \
|
||||
int start; \
|
||||
int end; \
|
||||
volatile int start; \
|
||||
volatile int end; \
|
||||
T* elems; \
|
||||
} NAME
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user