mirror of
https://github.com/firewalkwithm3/qmk_firmware.git
synced 2024-11-22 11:30:30 +08:00
Check all keys have matrix positions when parsing C LAYOUT macros (#19781)
This commit is contained in:
parent
80c6fbad1c
commit
6fabc330e3
|
@ -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