Fixed bug: odd devices would fail Root GetFeature

Some devices throw an hidpp20::Error InvalidFeatureIndex when Root
GetFeature is called with some features (e.g. 0x1b04) as the parameter.

Since Root is a required feature in the HID++ 2.0 protocol, this error
can safely be ignored and treated as an UnsupportedFeature.

Fixes bug in #20 where the Logitech PRO headset would not work.
This commit is contained in:
pixl
2020-07-03 22:59:34 -04:00
parent cd14d8dd27
commit 0b87d3c664
5 changed files with 43 additions and 9 deletions

View File

@@ -174,7 +174,7 @@ Report Device::sendReport(Report& report)
Report::Hidpp20Error hidpp20_error{};
if(response.isError20(&hidpp20_error))
throw hidpp10::Error(hidpp20_error.error_code);
throw hidpp20::Error(hidpp20_error.error_code);
return response;
}