Fix the formatting in parse_keymap.c
This commit is contained in:
@@ -11,9 +11,9 @@ static parser_error_t parseNoneAction(key_action_t *keyAction, config_buffer_t *
|
|||||||
}
|
}
|
||||||
|
|
||||||
static parser_error_t parseKeyStrokeAction(key_action_t *keyAction, uint8_t keyStrokeAction, config_buffer_t *buffer) {
|
static parser_error_t parseKeyStrokeAction(key_action_t *keyAction, uint8_t keyStrokeAction, config_buffer_t *buffer) {
|
||||||
keyAction->type = KeyActionType_Keystroke;
|
|
||||||
|
|
||||||
uint8_t keystrokeType = (SERIALIZED_KEYSTROKE_TYPE_MASK_KEYSTROKE_TYPE & keyStrokeAction) >> SERIALIZED_KEYSTROKE_TYPE_OFFSET_KEYSTROKE_TYPE;
|
uint8_t keystrokeType = (SERIALIZED_KEYSTROKE_TYPE_MASK_KEYSTROKE_TYPE & keyStrokeAction) >> SERIALIZED_KEYSTROKE_TYPE_OFFSET_KEYSTROKE_TYPE;
|
||||||
|
|
||||||
|
keyAction->type = KeyActionType_Keystroke;
|
||||||
switch (keystrokeType) {
|
switch (keystrokeType) {
|
||||||
case SerializedKeystrokeType_Basic:
|
case SerializedKeystrokeType_Basic:
|
||||||
keyAction->keystroke.keystrokeType = KeystrokeType_Basic;
|
keyAction->keystroke.keystrokeType = KeystrokeType_Basic;
|
||||||
@@ -158,6 +158,7 @@ static parser_error_t parseKeyActions(uint8_t targetLayer, config_buffer_t *buff
|
|||||||
static parser_error_t parseModule(config_buffer_t *buffer, uint8_t layer) {
|
static parser_error_t parseModule(config_buffer_t *buffer, uint8_t layer) {
|
||||||
uint8_t moduleId = readUInt8(buffer);
|
uint8_t moduleId = readUInt8(buffer);
|
||||||
uint8_t pointerRole = readUInt8(buffer);
|
uint8_t pointerRole = readUInt8(buffer);
|
||||||
|
|
||||||
return parseKeyActions(layer, buffer, moduleId, pointerRole);
|
return parseKeyActions(layer, buffer, moduleId, pointerRole);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user