aboutsummaryrefslogtreecommitdiff
path: root/device.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-10-14 13:52:42 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-10-19 16:34:34 +0200
commite0cef796093ff273c3bb5a51b2871c58328e033a (patch)
tree1ac2814839eb739399c1e83468e2007d6aaf17cc /device.cc
parentc0ffb01dd42b21023c00cb57f8d22bc5b53e244b (diff)
downloadlibnitrokey-e0cef796093ff273c3bb5a51b2871c58328e033a.tar.gz
libnitrokey-e0cef796093ff273c3bb5a51b2871c58328e033a.tar.bz2
Increase retry timeout for NK Storage for now
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'device.cc')
-rw-r--r--device.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/device.cc b/device.cc
index a420a64..04569a9 100644
--- a/device.cc
+++ b/device.cc
@@ -30,7 +30,7 @@ bool Device::disconnect() {
bool Device::connect() {
Log::instance()(__PRETTY_FUNCTION__, Loglevel::DEBUG_L2);
- // hid_init();
+// hid_init();
mp_devhandle = hid_open(m_vid, m_pid, NULL);
// hid_init();
return mp_devhandle != NULL;
@@ -94,7 +94,8 @@ Stick10::Stick10() {
Stick20::Stick20() {
m_vid = 0x20a0;
m_pid = 0x4109;
- m_retry_timeout = std::chrono::milliseconds(500);
+ m_retry_timeout = 1000ms;
m_model = DeviceModel::STORAGE;
m_send_receive_delay = 1000ms;
+ m_retry_count = 50;
}