From 52f4097894ca8e08d6767c56f29458ff9c20a967 Mon Sep 17 00:00:00 2001 From: Yaroslav Chvanov Date: Tue, 1 Feb 2022 18:47:30 +0300 Subject: [PATCH] Rival 100: add support for querying firmware version I kind of doubt this mouse has different firmware versions, but why not. Mine is v0.101 by the way. It probably works the same way on Rival 110. --- rivalcfg/devices/rival100.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rivalcfg/devices/rival100.py b/rivalcfg/devices/rival100.py index 45ddc329..be2e17e1 100644 --- a/rivalcfg/devices/rival100.py +++ b/rivalcfg/devices/rival100.py @@ -133,4 +133,9 @@ "report_type": usbhid.HID_REPORT_TYPE_OUTPUT, "command": [0x09, 0x00], }, + "firmware_version": { + "report_type": usbhid.HID_REPORT_TYPE_OUTPUT, + "command": [0x10, 0x00], + "response_length": 2, + }, }