Standardize index for GPU check

This commit is contained in:
Hoang Hong Quan
2024-10-10 18:45:36 +07:00
parent ec1c4d35fe
commit f3bc4e357e
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -2823,7 +2823,7 @@ DefinitionBlock ("", "SSDT", 2, "ZPSS", "SURFACE", 0x00001000)
selected_patches = []
if "Laptop" in hardware_report.get("Motherboard").get("Platform") and \
"Integrated GPU" in list(hardware_report.get("GPU").items())[0][-1].get("Device Type") and \
"Integrated GPU" in list(hardware_report.get("GPU").items())[-1][-1].get("Device Type") and \
not "SURFACE" in hardware_report.get("Motherboard").get("Name"):
selected_patches.append("ALS")
selected_patches.append("PNLF")