1
0
Fork 0

Migrate features and LTO from rules.mk to data driven (#23302)

This commit is contained in:
Joel Challis 2024-03-30 10:43:15 +00:00 committed by GitHub
parent 86e7df0c2a
commit 426bb9c651
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
291 changed files with 1763 additions and 2023 deletions

View file

@ -384,6 +384,12 @@ def _extract_encoders(info_data, config_c):
info_data['encoder']['rotary'] = encoders
# TODO: some logic still assumes ENCODER_ENABLED would partially create encoder dict
if info_data.get('features', {}).get('encoder', False):
if 'encoder' not in info_data:
info_data['encoder'] = {}
info_data['encoder']['enabled'] = True
def _extract_split_encoders(info_data, config_c):
"""Populate data about split encoder pins