fuck this

Dependencies:   BMP280

Revision:
7:bf9f92ff02e8
Parent:
6:8e1795a5886b
Child:
9:ac5673cca703
Child:
14:1fb1354ac27c
diff -r 8e1795a5886b -r bf9f92ff02e8 main.cpp
--- a/main.cpp	Wed Jan 03 16:37:33 2018 +0000
+++ b/main.cpp	Thu Jan 04 17:34:57 2018 +0000
@@ -21,19 +21,20 @@
     
     //Hardware Self Test
     
-    //Initilaiase interrupts and times
+    //Initialise interrupts and times
     ConfigThreadsAndIR();
+    firstSample = true; //Set only at start of program
     
     //Run
-    while (1)
+    while (true)
     {
         if (NewEnvSample && NewLDRSample)
         {
-            //If new samples have been captured, update history and LCD
+            //New samples have been captured and are in the register
+            IncrementIndex();
             //LCD Update Function
-            //Write values to history
             NewEnvSample = false;
             NewLDRSample = false;
         }
     }   
-}
+}
\ No newline at end of file