diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-10-04 09:36:09 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-10-10 17:59:51 +0200 |
commit | 6290c279b4b0d084dfb6a33526fa1263b0d7a2c0 (patch) | |
tree | 9899a6817c4b1e5c028ed6001989676268af5821 /include/device_proto.h | |
parent | 660a0b6e2d077448b92f4147ca35a9f799daef82 (diff) | |
download | libnitrokey-6290c279b4b0d084dfb6a33526fa1263b0d7a2c0.tar.gz libnitrokey-6290c279b4b0d084dfb6a33526fa1263b0d7a2c0.tar.bz2 |
Make additional retries for longer running commands
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include/device_proto.h')
-rw-r--r-- | include/device_proto.h | 2 |
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); |