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:
87:c920521283b2
Parent:
86:60c9ec6e48ed
Child:
88:9142f21a4715
--- a/main.cpp	Wed Sep 23 01:59:41 2015 +0000
+++ b/main.cpp	Wed Sep 23 19:40:26 2015 +0000
@@ -266,7 +266,7 @@
         bleMenu.open_menu(txPayload, rxCharacteristic, E2PROM, RTC, logInerval, refreshtime, volflowSet, device_name, dutyUp, dutyDown, home_lat, home_lon, work_lat, work_lon, Menu.menu_ops ,RunReady, 3, serial_num, calibrations);
     } else if(RunReady == 0 || RTC.OSF()) {
         RGB_LED.set_led(0,1,1); // error code/color
-        //pc.printf("Change Name\r\n");
+        //pc.printf("Fix RTC\r\n");
         while(RunReady == 0 || RTC.OSF()) {
             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, Menu.menu_ops, 0.25, serial_num, calibrations);  //Forces you to open the menu
@@ -319,8 +319,8 @@
     RGB_LED.set_led(1,1,0);
 
     if((Menu.crr & 0x10) != 0) { //crr bit 4 uses Demo values
-        volflowSet = 1.0; //L/min
-        logInerval = 10;
+        //volflowSet = 1.0; //L/min
+        //logInerval = 10;
     }
 
     if((Menu.crr & 0x02) != 0) {
@@ -339,14 +339,12 @@
         stop.attach(&check_stop, 60);    // check if we should shut down every 5 seconds, starting 60s after the start.
     }
 
-
-
     if(volflowSet<=1.0) {
         gainFlow = 100;
     } else if(volflowSet>=2.0) {
         gainFlow = 25;
     } else {
-        gainFlow = 25;
+        gainFlow = 50;
     }
 
     RGB_LED.set_led(1,0,0);