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:
75:0feb6f993562
Parent:
74:9ba8a7101036
Child:
76:611154b3b597
--- a/main.cpp	Sun Dec 10 03:17:14 2017 +0000
+++ b/main.cpp	Mon Dec 11 12:24:19 2017 +0000
@@ -65,7 +65,7 @@
     uint8_t                 cmd;                    // this contains error response
     uint8_t                 length;
     uint8_t                 did;
-    uint8_t                 pid[10];
+    char                    pid[10];
     //uint32_t              pid;
     DateTime_info           date_time;
     uint8_t                 device_state;          //changed POC2P0_DEVICE_STATE to uint8_t
@@ -785,17 +785,8 @@
     if (curr_touch_state == TOUCH_STATE_TEST_SCREEN)
     {
         memcpy(poc2p0_device_heartbeat_res.pid,get_userpid(),sizeof(poc2p0_device_heartbeat_res.pid));
-        gc.printf("poc2p0_device_heartbeat_res.pid = %s\n",poc2p0_device_heartbeat_res.pid);
+        //gc.printf("poc2p0_device_heartbeat_res.pid = %s\n",poc2p0_device_heartbeat_res.pid);
                
-        //ascii_to_hex((const char *)poc2p0_device_heartbeat_res.pid, sizeof(poc2p0_device_heartbeat_res.pid));
-        //gc.printf("poc2p0_device_heartbeat_res.pid = %2x\n",poc2p0_device_heartbeat_res.pid);
-        //gc.printf("\n");
-        
-        //for (uint8_t i = 0; i < sizeof(poc2p0_device_heartbeat_res.pid); i++)
-        //{
-        //    gc.printf("%02x",poc2p0_device_heartbeat_res.pid[i]);
-        //}
-        //gc.printf("\n");
     }
     else 
     {