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:
37:92fcbf22bf91
Child:
41:1141a75eacc4
--- a/main.cpp	Wed Aug 02 06:58:57 2017 +0000
+++ b/main.cpp	Fri Aug 11 12:19:25 2017 +0000
@@ -50,7 +50,7 @@
 
    while(1)
    {
-           DisableTouch();
+           /*DisableTouch();
            battery_voltage_condition=battery_voltage();
     
    if (battery_voltage_condition==3)
@@ -60,7 +60,7 @@
               
                          
   else
-       {             
+       {       */      
     
      EnableTouch();
      switch(main_state)                          // main state machine
@@ -101,7 +101,7 @@
                  }
                  break;
                  
-         case 4:  
+         case 4:  DisableTouch();  
                  state_t=bt_receive(state_r);               // bluetooth receive
                  main_state=3;
                 // gc.printf("statet=%d",state_t);
@@ -119,7 +119,7 @@
     }
 }
 
-}
+//}
 
 //}