1
0
Fork 0

get qmk generate-api into a good state

This commit is contained in:
Zach White 2020-12-01 16:04:22 -08:00 committed by Zach White
parent 266a85eda0
commit b2c26f7cdd
5 changed files with 117 additions and 35 deletions

View file

@ -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: