From 66c877f7bd95b42c639f421801a1dcfd598c9111 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Tue, 15 May 2018 01:47:24 +0200 Subject: [PATCH] Don't switch keymaps instead of playing macros. Fixes #86. --- right/src/config_parser/parse_keymap.c | 3 +-- right/src/key_action.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/right/src/config_parser/parse_keymap.c b/right/src/config_parser/parse_keymap.c index 4f0a5a1..6810145 100644 --- a/right/src/config_parser/parse_keymap.c +++ b/right/src/config_parser/parse_keymap.c @@ -75,7 +75,7 @@ static parser_error_t parsePlayMacroAction(key_action_t *keyAction, config_buffe if (macroIndex >= tempMacroCount) { return ParserError_InvalidSerializedPlayMacroAction; } - keyAction->type = KeyActionType_SwitchKeymap; + keyAction->type = KeyActionType_PlayMacro; keyAction->playMacro.macroId = macroIndex; return ParserError_Success; } @@ -196,4 +196,3 @@ parser_error_t ParseKeymap(config_buffer_t *buffer, uint8_t keymapIdx, uint8_t k } return ParserError_Success; } - diff --git a/right/src/key_action.h b/right/src/key_action.h index dae70fe..4d61965 100644 --- a/right/src/key_action.h +++ b/right/src/key_action.h @@ -19,7 +19,6 @@ KeyActionType_SwitchLayer, KeyActionType_SwitchKeymap, KeyActionType_PlayMacro, - KeyActionType_Test, } key_action_type_t; typedef enum {