Ensure that parseSwitchKeymapAction advances buffer.offset by the correct amount

This commit is contained in:
Eric Tang
2017-07-07 08:00:10 -07:00
parent 042fb60192
commit 24ed268518

View File

@@ -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;
}