From 24ed2685182eda3a3c4e8872e2d5d05a64d93096 Mon Sep 17 00:00:00 2001 From: Eric Tang Date: Fri, 7 Jul 2017 08:00:10 -0700 Subject: [PATCH] Ensure that parseSwitchKeymapAction advances buffer.offset by the correct amount --- right/src/config/parse_keymap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/right/src/config/parse_keymap.c b/right/src/config/parse_keymap.c index 454de59..2feef89 100644 --- a/right/src/config/parse_keymap.c +++ b/right/src/config/parse_keymap.c @@ -90,11 +90,11 @@ static uint8_t parseSwitchLayerAction(key_action_t *KeyAction, serialized_buffer } static uint8_t parseSwitchKeymapAction(key_action_t *keyAction, serialized_buffer_t *buffer) { -// uint16_t len; -// const char *keymap = readString(buffer, &len); + uint16_t keymapAbbreviationLen; + const char *keymapAbbreviation = readString(buffer, &keymapAbbreviationLen); + (void)keymapAbbreviation; keyAction->type = KeyActionType_SwitchKeymap; - // TODO: Implement this return ParserError_Success; }