diff options
author | cslashm <cslashm@gmail.com> | 2019-03-28 17:14:24 +0100 |
---|---|---|
committer | cslashm <cslashm@gmail.com> | 2019-04-01 17:40:24 +0200 |
commit | 83fc45a41346d12037486214b935e392c5eceee7 (patch) | |
tree | cee2d07441cfcb6836f9ced72cc33bbf2b44aa12 /src/device/device_ledger.cpp | |
parent | Merge pull request #5339 (diff) | |
download | monero-83fc45a41346d12037486214b935e392c5eceee7.tar.xz |
Add NanoX support
Diffstat (limited to '')
-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; |