mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
Fix copy/paste-o in ratbag_button_get_special
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
@@ -787,7 +787,7 @@ ratbag_button_get_special(struct ratbag_button *button)
|
||||
if (!button->profile->device->driver->read_button)
|
||||
return -ENOTSUP;
|
||||
|
||||
if (button->action.type != RATBAG_BUTTON_ACTION_TYPE_BUTTON)
|
||||
if (button->action.type != RATBAG_BUTTON_ACTION_TYPE_SPECIAL)
|
||||
return 0;
|
||||
|
||||
return button->action.action.button;
|
||||
|
||||
Reference in New Issue
Block a user