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:
69:7a99d97c334e
Parent:
68:ca444d0760a0
Child:
70:81f04e69e08a
--- a/main.cpp	Sat Aug 15 02:25:51 2015 +0000
+++ b/main.cpp	Sat Aug 15 17:30:20 2015 +0000
@@ -314,8 +314,20 @@
                 f_month = RTC.month;
                 f_year = RTC.year;
                 }
+         }
         }
-        }
+    else if(RTC.month == 12){
+            if(RTC.date == 31){
+                    f_date = 1;
+                    f_month = 1;
+                    f_year = RTC.year+1; 
+                    }
+            else{
+                    f_date = RTC.date+1;
+                    f_month = RTC.month;
+                    f_year = RTC.year;
+                    }
+       }
    
     
     sprintf(filename, "/sd/UPAS0011LOG %02d-%02d-%02d %02d=%02d=%02d %s.txt",RTC.year,RTC.month,RTC.date,RTC.hour,RTC.minutes,RTC.seconds,device_name);