Modification into 17th July New display demo code

Dependencies:   SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217

Fork of Ext_Demo_17July2017_newdis by SenseSemi

Revision:
34:8f6b0dc124e8
Parent:
32:76892fdf5e4c
--- a/ecgg.cpp	Tue Jul 18 04:15:30 2017 +0000
+++ b/ecgg.cpp	Sun Jul 23 16:50:59 2017 +0000
@@ -269,7 +269,7 @@
      {
  
         BLEMsg_info_ecg.cal_data.cal_sbp_dummy = 0;
-        BLEMsg_info_ecg.cal_data.cal_dbp_OTtyp = HR1;  //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. // changed nikita
 
         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
@@ -285,9 +285,9 @@
  else 
      {
         pc.printf("improper lead connection");
-        return 0;
+        return 0;                        // returning 0 for improper lead connection
     } 
 pc.printf("closing temporary file\n");
  // fclose(fpeecg1);
 //  pc.printf("temporary file closed\n");
-}   // End of main function
+}   // End of main function
\ No newline at end of file