From e0cef796093ff273c3bb5a51b2871c58328e033a Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Fri, 14 Oct 2016 13:52:42 +0200 Subject: Increase retry timeout for NK Storage for now Signed-off-by: Szczepan Zalega --- device.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'device.cc') 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; } -- cgit v1.2.1