Merge branch 'master' into macro-engine

This commit is contained in:
László Monda
2017-08-11 10:05:32 +02:00
7 changed files with 50 additions and 209 deletions

View File

@@ -48,7 +48,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++) {