Skip to content

Commit

Permalink
prevent unecessary mode change
Browse files Browse the repository at this point in the history
  • Loading branch information
antheas committed Jan 25, 2025
1 parent 2f2c217 commit 3b6d9a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/adjustor/drivers/lenovo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ def update(self, conf: Config):
self.sys_tdp = False
tdp_reset = True
notify_tdp = True
self.old_mode = mode
conf["tdp.lenovo.tdp.mode"] = new_mode

# Reset fan curve on mode change
Expand Down

0 comments on commit 3b6d9a7

Please sign in to comment.