diff options
author | Joel Challis <git@zvecr.com> | 2022-02-27 12:39:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-27 13:39:24 +0100 |
commit | 779c7debcfff1a4a3ad578a0c12bdd50cba11039 (patch) | |
tree | f0c4a389f9d93772d54a834c42db5f177ebca45e /lib/python/qmk/info.py | |
parent | e884414e1ef336361217f9e6a2dae9817bd19508 (diff) | |
download | qmk_firmware-779c7debcfff1a4a3ad578a0c12bdd50cba11039.tar.gz qmk_firmware-779c7debcfff1a4a3ad578a0c12bdd50cba11039.zip |
Fix issues with data driven split keyboards (#16457)
Diffstat (limited to 'lib/python/qmk/info.py')
-rw-r--r-- | lib/python/qmk/info.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/python/qmk/info.py b/lib/python/qmk/info.py index 905f10ecc2..b86eaa059f 100644 --- a/lib/python/qmk/info.py +++ b/lib/python/qmk/info.py @@ -550,6 +550,11 @@ def _matrix_size(info_data): info_data['matrix_size']['cols'] = len(info_data['matrix_pins']['cols']) info_data['matrix_size']['rows'] = len(info_data['matrix_pins']['rows']) + # Assumption of split common + if 'split' in info_data: + if info_data['split'].get('enabled', False): + info_data['matrix_size']['rows'] *= 2 + return info_data |