diff options
author | xiphon <xiphon@protonmail.com> | 2018-10-18 04:37:30 +0000 |
---|---|---|
committer | xiphon <xiphon@protonmail.com> | 2018-10-18 07:42:29 +0300 |
commit | 825d836f9f6ee724cf5b44ce720ad0bc26730ba0 (patch) | |
tree | dda02fd8177adc59dd1d4b44f9bfa075a1dc1983 /src/device/device_io_hid.hpp | |
parent | Merge pull request #4610 (diff) | |
download | monero-825d836f9f6ee724cf5b44ce720ad0bc26730ba0.tar.xz |
device: fixed Ledger Nano S device selection
Diffstat (limited to 'src/device/device_io_hid.hpp')
-rw-r--r-- | src/device/device_io_hid.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/device/device_io_hid.hpp b/src/device/device_io_hid.hpp index 6fd15a1d1..ffd3f534f 100644 --- a/src/device/device_io_hid.hpp +++ b/src/device/device_io_hid.hpp @@ -52,8 +52,8 @@ namespace hw { struct hid_conn_params { unsigned int vid; unsigned int pid; - unsigned int interface_number; - unsigned int usage_page; + int interface_number; + unsigned short usage_page; bool interface_OR_page ; }; @@ -100,7 +100,7 @@ namespace hw { void init(); void connect(void *params); - void connect(unsigned int vid, unsigned int pid, unsigned int interface_number, unsigned int usage_page, bool interface_OR_page ); + void connect(unsigned int vid, unsigned int pid, int interface_number, unsigned short usage_page, bool interface_OR_page ); bool connected() const; int exchange(unsigned char *command, unsigned int cmd_len, unsigned char *response, unsigned int max_resp_len); void disconnect(); |