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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user