From 314eb0d771e78146b45a058d64b3d4c511ca3730 Mon Sep 17 00:00:00 2001 From: Eric Tang Date: Tue, 26 Jun 2018 12:03:08 -0700 Subject: [PATCH] Stop macros from repeating --- right/src/usb_report_updater.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/right/src/usb_report_updater.c b/right/src/usb_report_updater.c index fc6c132..ae65116 100644 --- a/right/src/usb_report_updater.c +++ b/right/src/usb_report_updater.c @@ -279,7 +279,9 @@ static void applyKeyAction(key_state_t *keyState, key_action_t *action) } break; case KeyActionType_PlayMacro: - Macros_StartMacro(action->playMacro.macroId); + if (!keyState->previous) { + Macros_StartMacro(action->playMacro.macroId); + } break; } }