Changes done in ECG and BT

Dependencies:   SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217

Fork of merged_code2_20sept_2017_4th_oct_2017 by nikita teggi

Revision:
24:d992ee8369f4
Parent:
22:ffa88619551d
Child:
31:0f67acfc6236
--- a/glc.cpp	Fri Jun 23 07:26:55 2017 +0000
+++ b/glc.cpp	Sat Jun 24 10:24:32 2017 +0000
@@ -417,7 +417,7 @@
    {     
         gtc.printf("DATA1 is - %d\n", data1n); 
         gtc.printf("DATA2 is - %d\n", data2n);  
-        gtc.printf("mgdl is - %d\n", mgdll);   
+        gtc.printf("mgdl is - %d\n", mgdl);   
         
         glcraw[0] = (uint32_t)data1n;
         glcraw[1] = (uint32_t)data2n;
@@ -425,9 +425,9 @@
        sd_glcwrite(glcraw, pid);  //Writes the raw data into GLC file 
  
         //Results Stored to Bluetooth structure
-        glc_testtype = eprom_read(2);  // Reads the test type (before meal = 0 / after meal = 1 OR Random = 2 from location 2 of the EEPROM) Nidhin 12/6/17
+        glc_testtype = eprom_read_16(20);  // Reads the test type (before meal = 0 / after meal = 1 OR Random = 2 from location 2 of the EEPROM) Nidhin 12/6/17
         BLEMsg_info_glc.cal_data.cal_sbp_dummy = (uint16_t) glc_testtype;  // Data stored into structure
-        BLEMsg_info_glc.cal_data.cal_dbp_OTtyp = (uint16_t) mgdll;  //To be checked for reliable results           
+        BLEMsg_info_glc.cal_data.cal_dbp_OTtyp = (uint16_t) mgdl;  //To be checked for reliable results           
             
         structure_file(ptr_BLEMsg_info_glc, pid);           // Copy the structure into the GLC file 
         glcfile_mainfile(pid);