3rd Repo, trying to figure this out.

Dependencies:   LPS25H hts221

Fork of SOFT253_Template_Weather_OS_54 by Stage-1 Students SoCEM

Revision:
35:484e384f9bf1
Parent:
34:09ed07f2acba
Child:
36:19d3f752f9c3
--- a/main.cpp	Wed Apr 05 11:06:56 2017 +0000
+++ b/main.cpp	Wed Apr 05 11:17:12 2017 +0000
@@ -42,6 +42,7 @@
  
 // Call this on precise intervals
 void adcISR() {
+
     while(1)
     {
     //Read sample - make a copy
@@ -84,9 +85,8 @@
         mail_box.free(measure);
         return;
     }
-    Thread::wait(3000);
+    Thread::wait(5000);
     }
-    
 }
  
 //Normal priority thread (consumer)
@@ -136,7 +136,8 @@
     printf("Main Thread\n");
     while(1) 
     {
-      Thread::wait(3000);
+        Thread::wait(3000);
+        printf("MainThreadActive \r\n");
         float temp,humi;
         measurer.ReadTempHumi(&temp, &humi);
         barometer.get();