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:
41:1141a75eacc4
Parent:
40:f7f351699288
Child:
42:c81673b04b6a
--- a/ecgg.cpp	Sun Aug 20 16:21:54 2017 +0000
+++ b/ecgg.cpp	Fri Sep 08 10:35:21 2017 +0000
@@ -14,6 +14,7 @@
 #include "ec_bp.h"
 #include "eeprom_pgm.h"
 #include "struct.h"  // Added on 31/5/17_Nidhin
+
 //#include "test_type.h" //Added on  31/5/17_Nidhin
 
 #define MAX_HR_THRESHOLD 205
@@ -243,11 +244,11 @@
      {
  
         BLEMsg_info_ecg.cal_data.cal_sbp_dummy = 0;
-        BLEMsg_info_ecg.cal_data.cal_dbp_OTtyp = HR_avg;  //To be modified after HR code is added. 
+        BLEMsg_info_ecg.cal_data.cal_dbp_OTtyp = HR_avg;     //To be modified after HR code is added. 
 
-        structure_file(ptr_BLEMsg_info_ecg, pid); //copy the ECG structure to Main file  //COMMENTED Nidhin 10/6/2017 
-        ecgfile_mainfile(pid);                        // copy raw data to the main file and ECG file is cleared. //COMMENTED Nidhin 10/6/2017
-
+        structure_file(ptr_BLEMsg_info_ecg, pid);           //copy the ECG structure to Main file  //COMMENTED Nidhin 10/6/2017 
+        ecgfile_mainfile(pid);                              // copy raw data to the main file and ECG file is cleared. //COMMENTED Nidhin 10/6/2017
+        increment_pid ();                                   //increment pid if test is pass 
         pc.printf("Closed the main file\n");
         return HR_avg; 
   }