Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore transport defaults if SPLIT_KEYBOARD is unset #16706

Merged
merged 2 commits into from
Mar 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/python/qmk/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,14 +270,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):
Expand Down