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_ledger.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_ledger.hpp')
-rw-r--r-- | src/device/device_ledger.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/device/device_ledger.hpp b/src/device/device_ledger.hpp index 2f5beb044..c3a512640 100644 --- a/src/device/device_ledger.hpp +++ b/src/device/device_ledger.hpp @@ -95,6 +95,7 @@ namespace hw { void logCMD(void); void logRESP(void); unsigned int exchange(unsigned int ok=0x9000, unsigned int mask=0xFFFF); + unsigned int exchange_wait_on_input(unsigned int ok=0x9000, unsigned int mask=0xFFFF); void reset_buffer(void); int set_command_header(unsigned char ins, unsigned char p1 = 0x00, unsigned char p2 = 0x00); int set_command_header_noopt(unsigned char ins, unsigned char p1 = 0x00, unsigned char p2 = 0x00); |