aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoel Challis <[email protected]>2024-07-18 00:02:53 +0100
committerGitHub <[email protected]>2024-07-18 09:02:53 +1000
commit4ab36df48fba751ca88beaf1a7a5dd84ba34a370 (patch)
treeab44efbe8cb23798a177143d0c1ebc1a68bc26ac /lib
parentdaa777d6fb655c5fe16df4b3f1e89a37ab35dc57 (diff)
downloadqmk_firmware-4ab36df48fba751ca88beaf1a7a5dd84ba34a370.tar.gz
qmk_firmware-4ab36df48fba751ca88beaf1a7a5dd84ba34a370.zip
Move split.soft_serial_pin to split.serial.pin (#24127)
Diffstat (limited to 'lib')
-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 5b3b249015..5948b66b5e 100644
--- a/lib/python/qmk/info.py
+++ b/lib/python/qmk/info.py
@@ -461,6 +461,14 @@ def _extract_split_handedness(info_data, config_c):
split['handedness']['matrix_grid'] = split.pop('matrix_grid')
+def _extract_split_serial(info_data, config_c):
+ # Migrate
+ split = info_data.get('split', {})
+ if 'soft_serial_pin' in split:
+ split['serial'] = split.get('serial', {})
+ split['serial']['pin'] = split.pop('soft_serial_pin')
+
+
def _extract_split_transport(info_data, config_c):
# Figure out the transport method
if config_c.get('USE_I2C') is True:
@@ -656,6 +664,7 @@ def _extract_config_h(info_data, config_c):
_extract_audio(info_data, config_c)
_extract_secure_unlock(info_data, config_c)
_extract_split_handedness(info_data, config_c)
+ _extract_split_serial(info_data, config_c)
_extract_split_transport(info_data, config_c)
_extract_split_right_pins(info_data, config_c)
_extract_encoders(info_data, config_c)