diff --git a/right/src/config_parser/parse_config.c b/right/src/config_parser/parse_config.c index 948df44..73b5092 100644 --- a/right/src/config_parser/parse_config.c +++ b/right/src/config_parser/parse_config.c @@ -43,5 +43,8 @@ parser_error_t ParseConfig(config_buffer_t *buffer) { return errorCode; } } + if (!ParserRunDry) { + AllKeymapsCount = keymapCount; + } return ParserError_Success; } diff --git a/right/src/config_parser/parse_keymap.c b/right/src/config_parser/parse_keymap.c index a43a96a..a78e0b3 100644 --- a/right/src/config_parser/parse_keymap.c +++ b/right/src/config_parser/parse_keymap.c @@ -197,7 +197,6 @@ parser_error_t ParseKeymap(config_buffer_t *buffer, uint8_t keymapIdx, uint8_t k return ParserError_InvalidLayerCount; } if (!ParserRunDry) { - AllKeymapsCount = keymapCount; AllKeymaps[keymapIdx].abbreviation = abbreviation; AllKeymaps[keymapIdx].abbreviationLen = abbreviationLen; AllKeymaps[keymapIdx].offset = offset;