Skip to content

Commit

Permalink
handle for Ally edge case where /sys endpoints get removed
Browse files Browse the repository at this point in the history
  • Loading branch information
aarron-lee committed Oct 23, 2024
1 parent 3e69a18 commit b39d166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py_modules/cpu_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def set_amd_tdp(tdp: int):
# rog_ally.set_asusctl_platform_profile(tdp)
# else:
# rog_ally.set_platform_profile(tdp)
if advanced_options.get_setting(RogAllySettings.USE_WMI.value):
if advanced_options.get_setting(RogAllySettings.USE_WMI.value) and rog_ally.supports_wmi_tdp():
return rog_ally.set_tdp(tdp)

tdp = tdp*1000
Expand Down

0 comments on commit b39d166

Please sign in to comment.