get qmk generate-api into a good state

This commit is contained in:
Zach White authored and Zach White committed 2021-01-07 21:21:12 -08:00
1 parent 266a85eda0
commit b2c26f7cdd
5 files changed
+117 -35

No files matched your search

+1 -1
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: