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:
117:074ebef2dc12
Parent:
115:fb25810c1fab
Child:
118:9cf0a67fb581
Child:
119:350293861b5c
--- a/main.cpp	Thu Feb 18 03:43:35 2016 +0000
+++ b/main.cpp	Thu Feb 18 04:28:56 2016 +0000
@@ -527,6 +527,16 @@
         
         RTC.get_time();
         
+        secondsD = RTC.seconds;
+    
+        while(fmod(secondsD,logInerval)!=0 || floor(secondsD)==floor(lastsecondD)) {
+           //pc.printf("%f, %f\r\n", floor(secondsD), floor(lastsecondD)); 
+            RTC.get_time();
+            secondsD = RTC.seconds;
+            wait_ms(100);
+        }
+        lastsecondD = secondsD;
+            
         omronReading = ads.readADC_SingleEnded(0, 0xC583); // read channel 0 PGA = 2 : Full Scale Range = 2.048V
         omronVolt = (omronReading*4.096)/(32768*2);