1
0

wizard/hw: show transport type when listing HWDs

This commit is contained in:
SomberNight
2018-11-16 19:03:25 +01:00
parent eba97f74b4
commit 32af83b7ae
5 changed files with 28 additions and 8 deletions

View File

@@ -625,10 +625,14 @@ class ColdcardPlugin(HW_PluginBase):
fn = CKCC_SIMULATOR_PATH
if os.path.exists(fn):
return [Device(fn, -1, fn, (COINKITE_VID, CKCC_SIMULATED_PID), 0)]
return [Device(path=fn,
interface_number=-1,
id_=fn,
product_key=(COINKITE_VID, CKCC_SIMULATED_PID),
usage_page=0,
transport_ui_string='simulator')]
return []
def create_client(self, device, handler):
if handler: