get qmk generate-api into a good state
This commit is contained in:
parent
266a85eda0
commit
b2c26f7cdd
5 changed files with 117 additions and 35 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue