-
Notifications
You must be signed in to change notification settings - Fork 168
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed get_brightness for multiple displays
issue #14 resolved : TypeError: unsupported operand type(s) for /: 'float' and 'list' get_brightness() returns a list if multiple displays are detected, To fix this pass display=0 to get_brightness(). i.e. : sbcontrol.get_brightness(display=0)
- Loading branch information
1 parent
d99f4bc
commit a275d9d
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
currentBrightnessLv = sbcontrol.get_brightness(display=0)[-1]/100.0 this can fix that error