bugfix: string parser, empty value for single element
This commit is contained in:
@ -169,9 +169,11 @@ def bmms_bin_entry_genericparser(pcDataBuf):
|
||||
|
||||
sList = pcDataBuf[st_ReadedBytes:st_ReadedBytes + uiSize-8].split(b'\b')
|
||||
mList = []
|
||||
for mStr in sList[1:]:
|
||||
for mStr in sList:
|
||||
mList.append(mStr.rstrip(b'\0').decode('utf-8'))
|
||||
mList
|
||||
|
||||
if uiType == 0xa5000000 and len(mList)>0:
|
||||
mList.pop(0)
|
||||
mEntry['Val'] = mList
|
||||
|
||||
case 0xc5000000 :
|
||||
|
@ -134,7 +134,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 15,
|
||||
"execution_count": 9,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
|
Reference in New Issue
Block a user