aboutsummaryrefslogtreecommitdiff
path: root/include/device_proto.h
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-09-15 16:35:46 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2017-09-20 12:47:46 +0200
commit09d699a7c7edce60547a3e9900301e1ea62188f6 (patch)
tree786fdcdef4b07cb0388c45ad0fe0919755eb7a18 /include/device_proto.h
parentff1f2248b830ad78833e347be8d8c8dc9cb03c85 (diff)
downloadlibnitrokey-09d699a7c7edce60547a3e9900301e1ea62188f6.tar.gz
libnitrokey-09d699a7c7edce60547a3e9900301e1ea62188f6.tar.bz2
Decrease busy-delay count
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include/device_proto.h')
-rw-r--r--include/device_proto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/device_proto.h b/include/device_proto.h
index 4a548a0..6631d2f 100644
--- a/include/device_proto.h
+++ b/include/device_proto.h
@@ -308,7 +308,7 @@ namespace nitrokey {
}
if (resp.device_status == static_cast<uint8_t>(stick10::device_status::busy)) {
dev->m_counters.busy++;
- if (busy_counter++<10) {
+ if (busy_counter++<3) {
receiving_retry_counter++;
LOG("Status busy, not decreasing receiving_retry_counter counter: " +
std::to_string(receiving_retry_counter), Loglevel::DEBUG_L2);