mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
button: return -1 for invalid special values
Otherwise it looks like the function doesn't exist Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -295,7 +295,7 @@ static int ratbagd_button_set_special(sd_bus_message *m,
|
||||
special = RATBAG_BUTTON_ACTION_SPECIAL_BATTERY_LEVEL;
|
||||
else {
|
||||
log_error("Unknown button special action %s\n", s);
|
||||
return 0;
|
||||
return sd_bus_reply_method_return(m, "u", -1);
|
||||
}
|
||||
|
||||
r = ratbag_button_set_special(button->lib_button, special);
|
||||
|
||||
Reference in New Issue
Block a user