summaryrefslogtreecommitdiffstats
path: root/lib/python/qmk/cli
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2023-01-05 23:41:28 +0000
committerQMK Bot <hello@qmk.fm>2023-01-05 23:41:28 +0000
commitb2384f18096d42fb4ed036a2fc0135e6d32ece5d (patch)
treea328b4c96a7cfddb6e4421207bdcec61c2eac9f6 /lib/python/qmk/cli
parentfee362e09a6fbb863aa6e691abb662a7b80733ae (diff)
parent4a7d65b9d74af40fd5f92b58aad250f33f1af86a (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'lib/python/qmk/cli')
-rwxr-xr-xlib/python/qmk/cli/generate/config_h.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/generate/config_h.py b/lib/python/qmk/cli/generate/config_h.py
index 31b8d70635..c256ec4531 100755
--- a/lib/python/qmk/cli/generate/config_h.py
+++ b/lib/python/qmk/cli/generate/config_h.py
@@ -62,7 +62,7 @@ def matrix_pins(matrix_pins, postfix=''):
def generate_matrix_size(kb_info_json, config_h_lines):
"""Add the matrix size to the config.h.
"""
- if 'matrix_pins' in kb_info_json:
+ if 'matrix_size' in kb_info_json:
config_h_lines.append(generate_define('MATRIX_COLS', kb_info_json['matrix_size']['cols']))
config_h_lines.append(generate_define('MATRIX_ROWS', kb_info_json['matrix_size']['rows']))