Skip to content

Commit

Permalink
settings: add choices universe for backlight setting
Browse files Browse the repository at this point in the history
  • Loading branch information
pfps committed May 7, 2024
1 parent 20d3402 commit 147a143
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/logitech_receiver/settings_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ class NewFnSwap(FnSwapVirtual):

class Backlight(_Setting):
name = "backlight-qualitative"
label = _("Backlight")
label = _("Backlight Timed")
description = _("Set illumination time for keyboard.")
feature = _F.BACKLIGHT
choices_universe = _NamedInts(Off=0, Varying=2, VeryShort=5, Short=10, Medium=20, Long=60, VeryLong=180)
Expand All @@ -276,6 +276,7 @@ class Backlight2(_Setting):
label = _("Backlight")
description = _("Illumination level on keyboard. Changes made are only applied in Manual mode.")
feature = _F.BACKLIGHT2
choices_universe = _NamedInts(Disabled=0xFF, Enabled=0x00, Automatic=0x01, Manual=0x02)
min_version = 0

class rw_class:
Expand Down Expand Up @@ -400,7 +401,7 @@ class Backlight2DurationPowered(Backlight2Duration):

class Backlight3(_Setting):
name = "backlight-timed"
label = _("Backlight")
label = _("Backlight (Seconds)")
description = _("Set illumination time for keyboard.")
feature = _F.BACKLIGHT3
rw_options = {"read_fnid": 0x10, "write_fnid": 0x20, "suffix": b"\x09"}
Expand Down

0 comments on commit 147a143

Please sign in to comment.