From 6c060e6aaa26cd7e0161f075b52f093769195cd2 Mon Sep 17 00:00:00 2001 From: selsta Date: Wed, 9 Jan 2019 09:20:53 +0100 Subject: 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. --- src/device/device_io_hid.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/device/device_io_hid.hpp') 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 interface_number, boost::optional 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(); }; -- cgit v1.2.3