# @retval: A list for formatted hex string\r
#\r
def AscToHexList(Ascii):\r
- return ['0x{0:02X}'.format(ord(Item)) for Item in Ascii]\r
+ try:\r
+ return ['0x{0:02X}'.format(Item) for Item in Ascii]\r
+ except:\r
+ return ['0x{0:02X}'.format(ord(Item)) for Item in Ascii]\r
\r
## Create content of .h file\r
#\r