6 sharps, 2 ads hooked up

Dependencies:   ADS1115 BME280 CronoDot SDFileSystem mbed

Fork of Outdoor_UPAS_v1_2_Tboard by Volckens Group Sensors

Revision:
37:6c2dca195871
Parent:
36:2e344db70d35
Child:
38:65ae9771f1e3
--- a/main.cpp	Fri Apr 29 00:59:03 2016 +0000
+++ b/main.cpp	Fri Apr 29 03:57:10 2016 +0000
@@ -522,7 +522,7 @@
                         pumps = 1;
                   }
                     
-                    
+                   if(location != 1){ 
                     location = 1;
                     
                     schoolF1.getFault();
@@ -540,8 +540,11 @@
                     transitF3.stop();
                     blankF4.stop();
                     //RGB_LED.set_led(0,1,1);
+                    }
                     
             }else if(homeDistance < 100 || home2Distance < 100) { // 25 or 30 m instead?
+                    
+                    if(location != 2){
                     location = 2;
                     
                     schoolF1.getFault();
@@ -560,9 +563,10 @@
                     blankF4.stop();
                     
                     //RGB_LED.set_led(1,0,1);
-                    
+                    }
                     
             }else{
+                    if(location != 3){
                     location = 3;
                     
                     schoolF1.getFault();
@@ -579,6 +583,7 @@
                     homeF2.stop();
                     transitF3.stop();
                     blankF4.stop();
+                    }
                     
                   /*
                     if(sampledVol < 2){