When packing HiiPcd into PcdNvStoreDefaultValueBuffer,
The boolean type pcd value packing incorrect.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Buffer += pack("=B", int(value_char, 16))\r
data_len += len(tail.split(","))\r
elif data_type == "BOOLEAN":\r
- Buffer += pack("=B", True) if var_value.upper() == "TRUE" else pack("=B", False)\r
+ Buffer += pack("=B", True) if var_value.upper() in ["TRUE","1"] else pack("=B", False)\r
data_len += 1\r
elif data_type == DataType.TAB_UINT8:\r
Buffer += pack("=B", GetIntegerValue(var_value))\r