1
0

get qmk generate-api into a good state

This commit is contained in:
Zach White
2020-12-01 16:04:22 -08:00
parent 0a7ffb7fdd
commit e79a8b50e9
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: