diff options
author | Joel Challis <git@zvecr.com> | 2022-03-22 10:48:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-22 10:48:13 +0000 |
commit | 23f365f8bc4c44a0877478aada39c5787c33846e (patch) | |
tree | 222071c97d9457db12d87bbfe12e5d1b7ab4f3e3 /lib/python | |
parent | 4f8cc32cf50fb2b6eb3764a7d971c41121c9bc89 (diff) | |
download | qmk_firmware-23f365f8bc4c44a0877478aada39c5787c33846e.tar.gz qmk_firmware-23f365f8bc4c44a0877478aada39c5787c33846e.zip |
Ignore transport defaults if SPLIT_KEYBOARD is unset (#16706)
* Ignore transport defaults if SPLIT_KEYBOARD is unset
* keep exists check
Diffstat (limited to 'lib/python')
-rw-r--r-- | lib/python/qmk/info.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/python/qmk/info.py b/lib/python/qmk/info.py index d104d655ef..900cddaaa9 100644 --- a/lib/python/qmk/info.py +++ b/lib/python/qmk/info.py @@ -271,14 +271,16 @@ def _extract_split_transport(info_data, config_c): info_data['split']['transport']['protocol'] = 'i2c' - elif 'protocol' not in info_data.get('split', {}).get('transport', {}): + # Ignore transport defaults if "SPLIT_KEYBOARD" is unset + elif 'enabled' in info_data.get('split', {}): if 'split' not in info_data: info_data['split'] = {} if 'transport' not in info_data['split']: info_data['split']['transport'] = {} - info_data['split']['transport']['protocol'] = 'serial' + if 'protocol' not in info_data['split']['transport']: + info_data['split']['transport']['protocol'] = 'serial' def _extract_split_right_pins(info_data, config_c): |