get qmk generate-api into a good state
This commit is contained in:
@ -48,7 +48,7 @@ def generate_api(cli):
|
||||
if 'vid' in usb and usb['vid'] not in usb_list['devices']:
|
||||
usb_list['devices'][usb['vid']] = {}
|
||||
|
||||
if 'pid' in usb and usb['pid'] not in usb_list['devices'][usb['vid']]:
|
||||
if 'vid' in usb and usb['pid'] not in usb_list['devices'][usb['vid']]:
|
||||
usb_list['devices'][usb['vid']][usb['pid']] = {}
|
||||
|
||||
if 'vid' in usb and 'pid' in usb:
|
||||
|
@ -41,9 +41,12 @@ def generate_rules_mk(cli):
|
||||
# Find features that should be enabled
|
||||
if 'features' in kb_info_json:
|
||||
for feature, enabled in kb_info_json['features'].items():
|
||||
feature = feature.upper()
|
||||
enabled = 'yes' if enabled else 'no'
|
||||
rules_mk_lines.append(f'{feature}_ENABLE := {enabled}')
|
||||
if feature == 'bootmagic_lite' and enabled:
|
||||
rules_mk_lines.append(f'BOOTMAGIC_ENABLE := lite')
|
||||
else:
|
||||
feature = feature.upper()
|
||||
enabled = 'yes' if enabled else 'no'
|
||||
rules_mk_lines.append(f'{feature}_ENABLE := {enabled}')
|
||||
|
||||
# Set the LED driver
|
||||
if 'led_matrix' in kb_info_json and 'driver' in kb_info_json['led_matrix']:
|
||||
|
Reference in New Issue
Block a user