Pass both vendor and product to override autodetection. Autodetect 0090 as well.

This commit is contained in:
Viktor Dragomiretskyy 2020-07-11 02:08:18 +12:00
parent e33d4e956e
commit 7733cac3cb
2 changed files with 2 additions and 1 deletions

View file

@ -82,7 +82,7 @@ class VFSInitializer():
def open_device(self, init=False):
print('Opening device',hex(self.dev_type.value[1]))
vfs_usb.open(product=self.dev_type.value[1])
vfs_usb.open(vendor=self.dev_type.value[0], product=self.dev_type.value[1])
if init:
vfs_usb.send_init()

View file

@ -9,6 +9,7 @@ from usb.core import USBError
from .blobs import init_hardcoded, init_hardcoded_clean_slate
supported_devices=[
(0x138a, 0x0090),
(0x138a, 0x0097),
(0x06cb, 0x009a),
]