From f44f07c6a9b2cd4548d473b697b632c748b79f3f Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Thu, 10 Sep 2015 09:06:38 -0400 Subject: [PATCH] etekcity: fix the check for macro The current code was checking if the previous action assigned to a button was a macro, not that the action we are assigning will be a macro. Signed-off-by: Benjamin Tissoires --- src/driver-etekcity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver-etekcity.c b/src/driver-etekcity.c index 67f099b5..d2be7601 100644 --- a/src/driver-etekcity.c +++ b/src/driver-etekcity.c @@ -631,7 +631,7 @@ etekcity_write_macro(struct ratbag_button *button, unsigned i, j, count = 0; int rc; - if (ratbag_button_get_action_type(button) != RATBAG_BUTTON_ACTION_TYPE_MACRO) + if (action->type != RATBAG_BUTTON_ACTION_TYPE_MACRO) return 0; device = button->profile->device;