created separate function for hex to char

Dependencies:   SDFileSystem ds3231 eeprom_Nikita mbed testUniGraphic_150217

Fork of SS_SensePOC2P0_11Dec2017_USERPID by rashmi v

Revision:
39:69b09bd87502
Parent:
36:00d96aa14658
Child:
40:f7f351699288
--- a/bp.cpp	Wed Aug 02 06:58:57 2017 +0000
+++ b/bp.cpp	Fri Aug 11 12:19:25 2017 +0000
@@ -6,7 +6,7 @@
 #include "MAX30102.h" // BP ADD
 #include <string.h>
 #include <stdio.h>
-
+#include "eeprom_pgm.h"
 #include <time.h>
 #include "ds3231.h"
 #include "SDFileSystem.h"
@@ -97,7 +97,7 @@
     
     
     // Loading values of Length ,  PID, DID, sampling frequency, number of samples, calculated data.
-    BLEMsg_info_bp.device_id = 01;                   // Device ID fixed
+    BLEMsg_info_bp.device_id = eprom_read_8(12);                   // Device ID fixed  // changed on 11/8/17 nikita
     BLEMsg_info_bp.patient_id = (uint32_t)pid;       // Patient ID
     BLEMsg_info_bp.sampling_freq = 500;              // sampling frrquency
     BLEMsg_info_bp.length = 10774;                   //Total length of data in bytes  22 B+10752 B
@@ -210,6 +210,7 @@
      {
         screen_bp_error();             // checking for error out of range- nikita 10-7-17
         del_ppg_ecg_BPfile(pid);                          // Copy ECG and PPG data to BP file
+        delete_subfiles(pid);     //added on 11/8/17 nikita
      } 
     
     else