fuck this
Dependencies: BMP280
Diff: Sampling.h
- Revision:
- 15:e61297f9bae9
- Parent:
- 9:ac5673cca703
--- a/Sampling.h Sat Jan 06 16:13:37 2018 +0000 +++ b/Sampling.h Sat Jan 06 22:54:42 2018 +0000 @@ -20,11 +20,11 @@ extern float LDRReadings[BUFFERSIZE]; extern float timeReadings[BUFFERSIZE]; -extern unsigned short currentIndex; +extern volatile unsigned short currentIndex; //Position in the buffer of the newest sample -extern unsigned short nextIndex; +extern volatile unsigned short nextIndex; //Position in the buffer where the next sample needs to be writen to -extern unsigned short oldestIndex; +extern volatile unsigned short oldestIndex; //Position in the buffer of the oldest sample extern bool firstSample;