fuck this
Dependencies: BMP280
Diff: Sampling.cpp
- Revision:
- 15:e61297f9bae9
- Parent:
- 9:ac5673cca703
diff -r ac5673cca703 -r e61297f9bae9 Sampling.cpp --- a/Sampling.cpp Sat Jan 06 16:13:37 2018 +0000 +++ b/Sampling.cpp Sat Jan 06 22:54:42 2018 +0000 @@ -24,9 +24,9 @@ bool NewLDRSample; //Is there new data from the LDR to output? //Index -unsigned short nextIndex = 0; -unsigned short currentIndex = 0; -unsigned short oldestIndex = 0; +volatile unsigned short nextIndex = 0; +volatile unsigned short currentIndex = 0; +volatile unsigned short oldestIndex = 0; bool firstSample = true;