Skip to content

Commit 0b3e45f

Browse files
committed
Fix board ID call
Closes #571
1 parent fa89865 commit 0b3e45f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

resources/cli_menu.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,10 +382,13 @@ def set_smbios(self):
382382
elif change_menu == "2":
383383
custom_smbios = input("Set new SMBIOS mode: ")
384384
try:
385-
test = self.constants.board_id[custom_smbios]
386-
self.constants.override_smbios = custom_smbios
385+
if smbios_data.smbios_dictionary[custom_smbios]["Board ID"] != None:
386+
self.constants.override_smbios = custom_smbios
387+
else:
388+
print("Non-Intel SMBIOS, reverting to Default setting")
389+
self.constants.override_smbios = "Default"
387390
except KeyError:
388-
print("Unsupported SMBIOS, defaulting to Default setting")
391+
print("Unsupported SMBIOS, reverting to Default setting")
389392
self.constants.override_smbios = "Default"
390393
elif change_menu == "3":
391394
print("Disabling SMBIOS spoof")

0 commit comments

Comments
 (0)