Skip to content

Commit

Permalink
mode change event reject if mode already applied
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed Nov 7, 2023
1 parent e56d498 commit a4277b3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/service/backends/power.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

def set_mode(mode):
global _cur_mode
if _cur_mode == mode:
return
backlight="%100"
if mode == "performance":
_performance()
Expand Down

0 comments on commit a4277b3

Please sign in to comment.