From cdf3957180ecdf373051b0d9a6a1992694dd1b90 Mon Sep 17 00:00:00 2001 From: "Peter F. Patel-Schneider" Date: Sun, 25 Sep 2022 03:46:20 -0400 Subject: [PATCH] device: add one to feature count to count ROOT feature --- lib/logitech_receiver/hidpp20.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/logitech_receiver/hidpp20.py b/lib/logitech_receiver/hidpp20.py index 89916e6b..4e35ef20 100644 --- a/lib/logitech_receiver/hidpp20.py +++ b/lib/logitech_receiver/hidpp20.py @@ -259,7 +259,7 @@ class FeaturesArray(dict): _log.warn('FEATURE_SET found, but failed to read features count') return False else: - self.count = ord(count[:1]) + self.count = ord(count[:1]) + 1 # ROOT feature not included in count self[FEATURE.ROOT] = 0 self[FEATURE.FEATURE_SET] = fs_index return True