diff options
Diffstat (limited to 'lib/python/qmk/cli/generate/layouts.py')
| -rwxr-xr-x | lib/python/qmk/cli/generate/layouts.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/python/qmk/cli/generate/layouts.py b/lib/python/qmk/cli/generate/layouts.py index 273870e15..b7baae065 100755 --- a/lib/python/qmk/cli/generate/layouts.py +++ b/lib/python/qmk/cli/generate/layouts.py | |||
| @@ -54,6 +54,10 @@ def generate_layouts(cli): | |||
| 54 | if kb_info_json['layouts'][layout_name]['c_macro']: | 54 | if kb_info_json['layouts'][layout_name]['c_macro']: |
| 55 | continue | 55 | continue |
| 56 | 56 | ||
| 57 | if 'matrix' not in kb_info_json['layouts'][layout_name]['layout'][0]: | ||
| 58 | cli.log.debug('%s/%s: No matrix data!', cli.config.generate_layouts.keyboard, layout_name) | ||
| 59 | continue | ||
| 60 | |||
| 57 | layout_keys = [] | 61 | layout_keys = [] |
| 58 | layout_matrix = [['KC_NO' for i in range(col_num)] for i in range(row_num)] | 62 | layout_matrix = [['KC_NO' for i in range(col_num)] for i in range(row_num)] |
| 59 | 63 | ||
