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.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.hpp')
-rw-r--r-- | src/device/device_io.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/device/device_io.hpp b/src/device/device_io.hpp index 96163a211..1d5e3564c 100644 --- a/src/device/device_io.hpp +++ b/src/device/device_io.hpp @@ -50,7 +50,7 @@ namespace hw { virtual void disconnect() = 0; virtual bool connected() const = 0; - virtual int exchange(unsigned char *command, unsigned int cmd_len, unsigned char *response, unsigned int max_resp_len) = 0; + virtual int exchange(unsigned char *command, unsigned int cmd_len, unsigned char *response, unsigned int max_resp_len, bool user_input) = 0; }; }; }; |