aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-08-02 12:55:56 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-05 10:17:17 +0200
commit3e093f67f2bf662d408698398a581d888872cf67 (patch)
treedc6a1be1f984cd56c8a0b2e313c818ae6c02ee78
parentc26dca5cb1b24169663d1dceb223fe821a4b6f1a (diff)
downloadlibnitrokey-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.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/device.cc b/device.cc
index 326f7f4..6660276 100644
--- a/device.cc
+++ b/device.cc
@@ -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() {