diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-08-02 12:55:56 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2016-08-05 10:17:17 +0200 |
commit | 3e093f67f2bf662d408698398a581d888872cf67 (patch) | |
tree | dc6a1be1f984cd56c8a0b2e313c818ae6c02ee78 | |
parent | c26dca5cb1b24169663d1dceb223fe821a4b6f1a (diff) | |
download | libnitrokey-3e093f67f2bf662d408698398a581d888872cf67.tar.gz libnitrokey-3e093f67f2bf662d408698398a581d888872cf67.tar.bz2 |
Increase delay and retry count for response receiving
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r-- | device.cc | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -14,7 +14,7 @@ Device::Device() : m_vid(0), m_pid(0), m_retry_count(40), - m_retry_timeout(50), + m_retry_timeout(100), mp_devhandle(NULL), last_command_status(0){} @@ -85,7 +85,8 @@ Stick10::Stick10() { m_vid = 0x20a0; m_pid = 0x4108; m_model = DeviceModel::PRO; - m_send_receive_delay = 10ms; + m_send_receive_delay = 100ms; + m_retry_count = 100; } Stick20::Stick20() { |