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:
57:e82d4bd6b2c0
Child:
69:128e3b467820
--- a/glc.cpp	Mon Nov 20 12:23:52 2017 +0000
+++ b/glc.cpp	Tue Nov 21 12:47:03 2017 +0000
@@ -156,7 +156,12 @@
     
     // Loading values of Length ,  PID, DID, sampling frequency, number of samples, calculated data.
     BLEMsg_info_glc.device_id = eprom_read_8(12);                   // Device ID fixed  // change on 11/8/17 nikita
-    BLEMsg_info_glc.patient_id = (uint16_t)pid;      // Patient ID
+    //BLEMsg_info_glc.patient_id = (uint16_t)pid;                               // Patient ID
+    
+    get_userpid(BLEMsg_info_glc.patient_id,user_pid);
+    ascii_to_hex((const char *)BLEMsg_info_glc.patient_id, strlen(BLEMsg_info_glc.patient_id));
+    
+    
     BLEMsg_info_glc.sampling_freq = 0;              // sampling frrquency
     BLEMsg_info_glc.length = 30;                   //Total length of data in bytes  22 B+10752 B