mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-17 17:35:30 +00:00
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
commit
0a7f15964c
1 changed files with 3 additions and 1 deletions
|
@ -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] = {
|
||||
|
|
Loading…
Reference in a new issue