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 | bd429033df283563106a0d57d3ec0f0d26f5abc5 (diff) | |
| parent | 83fc45a41346d12037486214b935e392c5eceee7 (diff) | |
| download | monzero-core-fa789109f60d5fc19369d5f2529aaf87139e7603.tar.gz monzero-core-fa789109f60d5fc19369d5f2529aaf87139e7603.tar.xz monzero-core-fa789109f60d5fc19369d5f2529aaf87139e7603.zip | |
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; |
