diff --git a/right/src/config_parser/parse_config.c b/right/src/config_parser/parse_config.c index df1f87c..ab30338 100644 --- a/right/src/config_parser/parse_config.c +++ b/right/src/config_parser/parse_config.c @@ -44,7 +44,7 @@ parser_error_t ParseConfig(config_buffer_t *buffer) } } keymapCount = readCompactLength(buffer); - if (keymapCount > 255) { + if (keymapCount > MAX_KEYMAP_NUM) { return ParserError_InvalidKeymapCount; } for (uint8_t keymapIdx = 0; keymapIdx < keymapCount; keymapIdx++) {