1
0

hww: factor out part of hid scan code to HW_PluginBase

so that bitbox02 can override it
This commit is contained in:
SomberNight
2020-04-06 18:20:21 +02:00
committed by TheCharlatan
parent 66c264f613
commit e830ef309f
7 changed files with 36 additions and 28 deletions

View File

@@ -88,7 +88,7 @@ class KeepKeyPlugin(HW_PluginBase):
self.DEVICE_IDS = (keepkeylib.transport_hid.DEVICE_IDS +
keepkeylib.transport_webusb.DEVICE_IDS)
# only "register" hid device id:
self.device_manager().register_devices(keepkeylib.transport_hid.DEVICE_IDS)
self.device_manager().register_devices(keepkeylib.transport_hid.DEVICE_IDS, plugin=self)
# for webusb transport, use custom enumerate function:
self.device_manager().register_enumerate_func(self.enumerate)
self.libraries_available = True