Skip to content

Commit

Permalink
fix log for rog ally
Browse files Browse the repository at this point in the history
  • Loading branch information
aarron-lee committed Jan 21, 2024
1 parent ac95d83 commit aa0d716
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions py_modules/devices/rog_ally.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,16 @@ def set_tdp_platform_profile(tdp):
current_value = file.read()
file.close()

decky_plugin.logger.info(f'platform profile is {current_value} | tdp being set is {tdp}')

command = 'quiet'
if tdp < 9:
command = 'quiet'
elif tdp < 19:
command = 'balanced'
else:
command = 'performance'

decky_plugin.logger.info(f'current platform profile is {current_value} | new platform profile will be set to {command} | tdp being set is {tdp}')

if current_value.strip() == command:
# already set, return
return
Expand Down

0 comments on commit aa0d716

Please sign in to comment.