mirror of
https://github.com/PixlOne/logiops.git
synced 2025-07-13 21:02:43 +08:00
Fix unsupported functions on ReprogControls
This commit is contained in:
parent
38dcc65d4b
commit
f3edab82ce
@ -162,6 +162,15 @@ void Device::divert_buttons()
|
||||
{
|
||||
log_printf(DEBUG, "%s does not support Reprog controls, not diverting!", name.c_str());
|
||||
}
|
||||
catch(HIDPP20::Error &e)
|
||||
{
|
||||
if(e.errorCode() == HIDPP20::Error::InvalidFunctionID) {
|
||||
// Not really an error, the device does not support diverting buttons
|
||||
}
|
||||
else {
|
||||
log_printf(ERROR, "Could not divert buttons: HID++ 2.0 Error %s!", e.what());
|
||||
}
|
||||
}
|
||||
catch(HIDPP10::Error &e)
|
||||
{
|
||||
log_printf(DEBUG, "Could not divert buttons: HID++ 1.0 Error %s!", e.what());
|
||||
|
Loading…
Reference in New Issue
Block a user