diff options
author | QMK Bot <hello@qmk.fm> | 2023-03-01 23:57:53 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2023-03-01 23:57:53 +0000 |
commit | 0a7f15964c6f8e10f7c1125cc61d31fc485ec25c (patch) | |
tree | 75143bb210f4537806dd45ca5d0bdba70c94f7b3 | |
parent | 500da8e46c113ae06c300f2366ad68075c74bdef (diff) | |
parent | 6fabc330e3bd8156e84ef3106c07e93d210c37d1 (diff) |
Merge remote-tracking branch 'origin/master' into develop
-rw-r--r-- | lib/python/qmk/c_parse.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/python/qmk/c_parse.py b/lib/python/qmk/c_parse.py index 560e5d3264..501c41972f 100644 --- a/lib/python/qmk/c_parse.py +++ b/lib/python/qmk/c_parse.py @@ -88,7 +88,9 @@ def find_layouts(file): for i, key in enumerate(parsed_layout): if 'label' not in key: cli.log.error('Invalid LAYOUT macro in %s: Empty parameter name in macro %s at pos %s.', file, macro_name, i) - elif key['label'] in matrix_locations: + elif key['label'] not in matrix_locations: + cli.log.error('Invalid LAYOUT macro in %s: Key %s in macro %s has no matrix position!', file, key['label'], macro_name) + else: key['matrix'] = matrix_locations[key['label']] parsed_layouts[macro_name] = { |