Zach White %!s(int64=4) %!d(string=hai) anos
pai
achega
e2c7f89347
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/python/qmk/cli/generate/api.py

+ 1 - 1
lib/python/qmk/cli/generate/api.py

@@ -48,7 +48,7 @@ def generate_api(cli):
             if 'vid' in usb and usb['vid'] not in usb_list['devices']:
             if 'vid' in usb and usb['vid'] not in usb_list['devices']:
                 usb_list['devices'][usb['vid']] = {}
                 usb_list['devices'][usb['vid']] = {}
 
 
-            if 'vid' in usb and usb['pid'] not in usb_list['devices'][usb['vid']]:
+            if 'pid' in usb and usb['pid'] not in usb_list['devices'][usb['vid']]:
                 usb_list['devices'][usb['vid']][usb['pid']] = {}
                 usb_list['devices'][usb['vid']][usb['pid']] = {}
 
 
             if 'vid' in usb and 'pid' in usb:
             if 'vid' in usb and 'pid' in usb: