diff options
author | selsta <selsta@sent.at> | 2019-01-09 09:20:53 +0100 |
---|---|---|
committer | selsta <selsta@sent.at> | 2019-01-09 15:45:06 +0100 |
commit | 6c060e6aaa26cd7e0161f075b52f093769195cd2 (patch) | |
tree | c1765920dae7f3f440e01a1fa518a1531f1f2e15 /src/device/device_io_hid.hpp | |
parent | Merge pull request #5045 (diff) | |
download | monero-6c060e6aaa26cd7e0161f075b52f093769195cd2.tar.xz |
device: proper handling of user input
(1) If the user denies something on the Ledger,
a proper error message is now shown.
(2) Ledger doesn't time out anymore while waiting
on user input.
(3) Lower the timeout to 2 seconds, this is enough for
normal Ledger <-> System communication.
Diffstat (limited to 'src/device/device_io_hid.hpp')
-rw-r--r-- | src/device/device_io_hid.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/device_io_hid.hpp b/src/device/device_io_hid.hpp index bb0f0a814..c47eefad2 100644 --- a/src/device/device_io_hid.hpp +++ b/src/device/device_io_hid.hpp @@ -100,7 +100,7 @@ namespace hw { void connect(void *params); void connect(unsigned int vid, unsigned int pid, boost::optional<int> interface_number, boost::optional<unsigned short> usage_page); bool connected() const; - int exchange(unsigned char *command, unsigned int cmd_len, unsigned char *response, unsigned int max_resp_len); + int exchange(unsigned char *command, unsigned int cmd_len, unsigned char *response, unsigned int max_resp_len, bool user_input); void disconnect(); void release(); }; |