solaar: fix bug in suspend and resume callback

This commit is contained in:
Peter F. Patel-Schneider 2024-05-07 11:57:14 -04:00
parent 1dfc4bdb1c
commit 6c11f4e480
1 changed files with 2 additions and 2 deletions

View File

@ -39,9 +39,9 @@ _resume_callback = None
def _suspend_or_resume(suspend): def _suspend_or_resume(suspend):
if suspend is True and _suspend_callback: if suspend and _suspend_callback:
_suspend_callback() _suspend_callback()
if suspend is False and _resume_callback: if not suspend and _resume_callback:
_resume_callback() _resume_callback()