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:
68:41da0a3ba038
Parent:
61:ce5ad0838227
Child:
69:128e3b467820
--- a/ecgg.cpp	Mon Nov 20 12:23:52 2017 +0000
+++ b/ecgg.cpp	Tue Nov 21 12:47:03 2017 +0000
@@ -94,7 +94,11 @@
     
     // Loading values of Length ,  PID, DID, sampling frequency, number of samples, calculated data.
     BLEMsg_info_ecg.device_id = eprom_read_8(12);                 // Device ID fixed
-    BLEMsg_info_ecg.patient_id = (uint32_t)pid;       // Patient ID
+    //BLEMsg_info_ecg.patient_id = (uint32_t)pid;       // Patient ID
+    
+    get_userpid(BLEMsg_info_ecg.patient_id,user_pid);
+    ascii_to_hex((const char *)BLEMsg_info_ecg.patient_id, strlen(BLEMsg_info_ecg.patient_id));
+    
     BLEMsg_info_ecg.sampling_freq = 500;              // sampling frrquency
     BLEMsg_info_ecg.length = 8022;                   //Total length of data in bytes  22 B+ 4000 data