summaryrefslogtreecommitdiff
path: root/lib/python/qmk
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2023-10-21 01:48:05 +0100
committerGitHub <noreply@github.com>2023-10-21 01:48:05 +0100
commite4c54a9612318ea03accfb688c8440b62c5706e1 (patch)
treeb260797f1418ea075058c8c46caea91b5d581389 /lib/python/qmk
parent20cefe254d4f29e01e01f07ed61bff2e3fb485d0 (diff)
Support additional split sync items for info.json (#22193)
Diffstat (limited to 'lib/python/qmk')
-rw-r--r--lib/python/qmk/info.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/python/qmk/info.py b/lib/python/qmk/info.py
index 4806add67a..265e6a645f 100644
--- a/lib/python/qmk/info.py
+++ b/lib/python/qmk/info.py
@@ -428,6 +428,15 @@ def _extract_split_transport(info_data, config_c):
if 'protocol' not in info_data['split']['transport']:
info_data['split']['transport']['protocol'] = 'serial'
+ # Migrate
+ transport = info_data.get('split', {}).get('transport', {})
+ if 'sync_matrix_state' in transport:
+ transport['sync'] = transport.get('sync', {})
+ transport['sync']['matrix_state'] = transport.pop('sync_matrix_state')
+ if 'sync_modifiers' in transport:
+ transport['sync'] = transport.get('sync', {})
+ transport['sync']['modifiers'] = transport.pop('sync_modifiers')
+
def _extract_split_right_pins(info_data, config_c):
# Figure out the right half matrix pins