Skip to content

Commit

Permalink
solaar: fix bug in suspend and resume callback
Browse files Browse the repository at this point in the history
  • Loading branch information
pfps committed May 8, 2024
1 parent 1dfc4bd commit 6c11f4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/solaar/dbus.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@


def _suspend_or_resume(suspend):
if suspend is True and _suspend_callback:
if suspend and _suspend_callback:
_suspend_callback()
if suspend is False and _resume_callback:
if not suspend and _resume_callback:
_resume_callback()


Expand Down

0 comments on commit 6c11f4e

Please sign in to comment.