nrf5/sdk: Updating ringbuffer.h to use volatile variables for start and end.

This commit is contained in:
Glenn Ruben Bakke 2017-03-03 00:11:42 +01:00
parent d057a93675
commit 235c0edacb

View File

@ -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