Skip to content

Commit 055ef01

Browse files
committed
DasharoSystemFeaturesHii.h: handle DGPUEnabled as UINT8
Signed-off-by: Filip Lewinski <[email protected]>
1 parent ecc60e3 commit 055ef01

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

DasharoModulePkg/Library/DasharoSystemFeaturesUiLib/DasharoSystemFeaturesHii.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ typedef struct {
9797
UINT8 CoreActiveCount;
9898
UINT8 CoreMaxCount;
9999
UINT8 UsbPortPower;
100-
BOOLEAN DGPUEnabled;
100+
UINT8 DGPUEnabled;
101101
} DASHARO_FEATURES_DATA;
102102

103103
//

DasharoModulePkg/Library/DasharoVariablesLib/DasharoVariablesLib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ GetVariableInfo (
191191
Size = sizeof (Data.Boolean);
192192
ExtraAttrs = EFI_VARIABLE_RUNTIME_ACCESS;
193193
} else if (StrCmp (VarName, DASHARO_VAR_DGPU_ENABLED) == 0) {
194-
Data.Boolean = TRUE;
195-
Size = sizeof (Data.Boolean);
194+
Data.Uint8 = DASHARO_DGPU_ENABLED;
195+
Size = sizeof (Data.Uint8);
196196
} else {
197197
DEBUG ((EFI_D_ERROR, "%a(): Unknown variable: %s.\n", __FUNCTION__, VarName));
198198
ASSERT ((0 && "No default value set for a variable."));

0 commit comments

Comments
 (0)