Skip to content

Commit

Permalink
settings: make equalizer changes have immediate effect
Browse files Browse the repository at this point in the history
  • Loading branch information
pfps committed Jul 3, 2024
1 parent d9d67ed commit 1a6b0fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/logitech_receiver/settings_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,7 @@ def build(cls, setting_class, device):
if g * 7 + b >= count:
break
map[g * 7 + b] = str(int.from_bytes(freqs[2 * b + 1 : 2 * b + 3], "big")) + _("Hz")
return cls(map, min_value=dbMin, max_value=dbMax, count=count, write_prefix_bytes=b"\x02")
return cls(map, min_value=dbMin, max_value=dbMax, count=count, write_prefix_bytes=b"\x01")


class ADCPower(settings.Setting):
Expand Down
4 changes: 2 additions & 2 deletions tests/logitech_receiver/test_setting_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,8 @@ def test_simple_template(test, mocker, mock_gethostname):
hidpp.Response("0220000000", 0x0400),
hidpp.Response("0000800100000000000000", 0x0410, "00"),
hidpp.Response("E010", 0x0420, "00"),
hidpp.Response("E010", 0x0430, "02E010"),
hidpp.Response("E018", 0x0430, "02E018"),
hidpp.Response("E010", 0x0430, "01E010"),
hidpp.Response("E018", 0x0430, "01E018"),
),
Setup(
FeatureTest(settings_templates.PerKeyLighting, {1: -1, 2: -1, 9: -1, 10: -1, 113: -1}, {2: 0xFF0000}, 4, 4, 0, 1),
Expand Down

0 comments on commit 1a6b0fe

Please sign in to comment.