Code supports writing to the SD card as well as working with the Volckens group smartphone apps for the mbed HRM1017

Dependencies:   ADS1115 BLE_API BME280 Calibration CronoDot EEPROM LSM303 MCP40D17 NCP5623BMUTBG SDFileSystem SI1145 STC3100 mbed nRF51822

Fork of UPAS_BLE_and_USB by Volckens Group Sensors

Revision:
76:8130cb6776c6
Parent:
75:52e3d2280040
Child:
77:24fbeb2bfe05
--- a/main.cpp	Tue Sep 01 01:25:44 2015 +0000
+++ b/main.cpp	Tue Sep 01 02:10:13 2015 +0000
@@ -275,13 +275,10 @@
  
     
     //Test for errors
-    if(RTC.OSF()) {                 //Don't proceed if the RTC needs reset
-        RGB_LED.set_led(0,1,1); // error code/color
-        pc.printf("DATE/TIMESTAMP NEEDS TO BE RECALIBRATED!!\r\n");
-        Menu.Start(pc, E2PROM, RTC, logInerval, refreshtime, volflowSet, device_name, dutyUp, dutyDown, home_lat, home_lon, work_lat, work_lon, 513, 0.25);  //Forces you to open the menu
-        Menu.save_menu(E2PROM, logInerval, refreshtime, volflowSet, device_name, dutyUp, dutyDown, home_lat, home_lon, work_lat, work_lon, RunReady);       //Save all data to the EEPROM
-    }
     //RunReady = 0; //debug always open the menu
+    //if(RTC.OSF()) {                 //Force the menu open if the RTC needs reset.
+    //    RunReady = 0;
+    //}
     if(RunReady == 0){
         RGB_LED.set_led(0,1,1); // error code/color
         pc.printf("Change Name\r\n");
@@ -289,7 +286,7 @@
             RGB_LED.set_led(0,1,1);   // error code/color
             RunReady = Menu.Start(pc, E2PROM, RTC, logInerval, refreshtime, volflowSet, device_name, dutyUp, dutyDown, home_lat, home_lon, work_lat, work_lon, 513, 0.25);  //Forces you to open the menu
             RGB_LED.set_led(0,10,10); // error code/color
-            bleMenu.open_menu(txPayload, rxCharacteristic, device_name, RTC, RunReady);
+            bleMenu.open_menu(txPayload, rxCharacteristic, E2PROM, RTC, logInerval, refreshtime, volflowSet, device_name, dutyUp, dutyDown, home_lat, home_lon, work_lat, work_lon, 9,RunReady, 0.25);
         }
         //RunReady = 1;
         Menu.save_menu(E2PROM, logInerval, refreshtime, volflowSet, device_name, dutyUp, dutyDown, home_lat, home_lon, work_lat, work_lon, RunReady);       //Save all data to the EEPROM