Fix GenCfgData tool which wrongly handle data bigger than one byte.

When config data define with size bigger than 1 byte in array,
GenCfgData will parse as zero value.

This patch to fix the issue.

Signed-off-by: Teo, Boon Tiong <boon.tiong.teo@intel.com>
This commit is contained in:
Teo, Boon Tiong 2019-09-27 14:09:03 +08:00 committed by Maurice Ma
parent 1a7287881b
commit 68c1cea581
1 changed files with 1 additions and 1 deletions

View File

@ -449,7 +449,7 @@ EndList
raise Exception("Array size is not proper for '%s' !" % ConfigDict['cname'])
ByteArray = []
for Value in ByteArray:
for Value in DataList:
for Loop in range(Unit):
ByteArray.append("0x%02X" % (Value & 0xFF))
Value = Value >> 8