Merge remote-tracking branch 'origin/develop' into xap

This commit is contained in:
QMK Bot 2022-08-19 00:57:25 +00:00
commit d0a9ceb8b2

View File

@ -110,14 +110,7 @@ def info_json(keyboard):
def _extract_features(info_data, rules): def _extract_features(info_data, rules):
"""Find all the features enabled in rules.mk. """Find all the features enabled in rules.mk.
""" """
# Special handling for bootmagic which also supports a "lite" mode. # Process booleans rules
if rules.get('BOOTMAGIC_ENABLE') == 'lite':
rules['BOOTMAGIC_LITE_ENABLE'] = 'on'
del rules['BOOTMAGIC_ENABLE']
if rules.get('BOOTMAGIC_ENABLE') == 'full':
rules['BOOTMAGIC_ENABLE'] = 'on'
# Process the rest of the rules as booleans
for key, value in rules.items(): for key, value in rules.items():
if key.endswith('_ENABLE'): if key.endswith('_ENABLE'):
key = '_'.join(key.split('_')[:-1]).lower() key = '_'.join(key.split('_')[:-1]).lower()