diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-04-11 13:02:47 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-04-11 13:02:47 +0200 |
commit | fa789109f60d5fc19369d5f2529aaf87139e7603 (patch) | |
tree | c9efdd270f5dbfeac7e7acf5fa0cb4f845174acf /src/device/device_ledger.cpp | |
parent | Merge pull request #5378 (diff) | |
parent | Add NanoX support (diff) | |
download | monero-fa789109f60d5fc19369d5f2529aaf87139e7603.tar.xz |
Merge pull request #5379
83fc45a4 Add NanoX support (cslashm)
Diffstat (limited to 'src/device/device_ledger.cpp')
-rw-r--r-- | src/device/device_ledger.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/device/device_ledger.cpp b/src/device/device_ledger.cpp index d6033e189..200370564 100644 --- a/src/device/device_ledger.cpp +++ b/src/device/device_ledger.cpp @@ -389,10 +389,15 @@ namespace hw { MDEBUG( "Device "<<this->id <<" HIDUSB inited"); return true; } + + static const std::vector<hw::io::hid_conn_params> known_devices { + {0x2c97, 0x0001, 0, 0xffa0}, + {0x2c97, 0x0004, 0, 0xffa0}, + }; bool device_ledger::connect(void) { this->disconnect(); - hw_device.connect(0x2c97, 0x0001, 0, 0xffa0); + hw_device.connect(known_devices); this->reset(); #ifdef DEBUG_HWDEVICE cryptonote::account_public_address pubkey; |