aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-10-04 09:36:09 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2017-10-10 17:59:51 +0200
commit6290c279b4b0d084dfb6a33526fa1263b0d7a2c0 (patch)
tree9899a6817c4b1e5c028ed6001989676268af5821
parent660a0b6e2d077448b92f4147ca35a9f799daef82 (diff)
downloadlibnitrokey-6290c279b4b0d084dfb6a33526fa1263b0d7a2c0.tar.gz
libnitrokey-6290c279b4b0d084dfb6a33526fa1263b0d7a2c0.tar.bz2
Make additional retries for longer running commands
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-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 bb14b42..cfb7544 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++<3) {
+ if (busy_counter++<10) {
receiving_retry_counter++;
LOG("Status busy, not decreasing receiving_retry_counter counter: " +
std::to_string(receiving_retry_counter), Loglevel::DEBUG_L2);