Skip to content

Commit

Permalink
device: fix bug in creating features array
Browse files Browse the repository at this point in the history
  • Loading branch information
pfps committed Mar 11, 2024
1 parent f3ff61c commit 0b59919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logitech_receiver/hidpp20.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def __setitem__(self, feature, index):
if isinstance(super().get(feature), int):
self.inverse.pop(super().get(feature))
super().__setitem__(feature, index)
if isinstance(index, int):
if index is not False:
self.inverse[index] = feature

def __delitem__(self, feature):
Expand Down

0 comments on commit 0b59919

Please sign in to comment.