Read keymap index instead of keymap abbreviation for keymap switch actions according to the updated binary configuration.

This commit is contained in:
László Monda
2017-07-30 21:20:23 +02:00
parent b5fd93f578
commit a30c078f02

View File

@@ -51,10 +51,9 @@ static parser_error_t parseSwitchLayerAction(key_action_t *KeyAction, config_buf
}
static parser_error_t parseSwitchKeymapAction(key_action_t *keyAction, config_buffer_t *buffer) {
uint16_t keymapAbbreviationLen;
const char *keymapAbbreviation = readString(buffer, &keymapAbbreviationLen);
uint8_t keymapIndex = readUInt8(buffer);
(void)keymapAbbreviation;
(void)keymapIndex;
keyAction->type = KeyActionType_SwitchKeymap;
// TODO: Implement this
return ParserError_Success;