diff options
Diffstat (limited to 'src/backlight.py')
-rw-r--r-- | src/backlight.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backlight.py b/src/backlight.py index 54090ae..3d61780 100644 --- a/src/backlight.py +++ b/src/backlight.py @@ -89,7 +89,7 @@ class Backlight: ''' if not self.__adjbacklight: with open('%s/brightness' % self.__controller, 'wb') as file: - file.write((str(value + self.__minimum) + '\n').encode('utf-8')) + file.write(('%i\n' % (value + self.__minimum)).encode('utf-8')) file.flush() else: cmd = ['adjbacklight', self.__controller, '--set', str(value + self.__minimum)] |