diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-02-10 12:39:25 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-03-11 15:41:45 +0100 |
commit | c3aec5d004968c103a65398a1fd66f0d5ced63af (patch) | |
tree | 64b426ff21d28bea6a890b4584c9683e0cca6934 /include | |
parent | 99b490a17d17611f7499eab84789fc9ba6e66885 (diff) | |
download | libnitrokey-c3aec5d004968c103a65398a1fd66f0d5ced63af.tar.gz libnitrokey-c3aec5d004968c103a65398a1fd66f0d5ced63af.tar.bz2 |
Count all busy status
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include')
-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 cd91952..cbb74fb 100644 --- a/include/device_proto.h +++ b/include/device_proto.h @@ -300,9 +300,9 @@ namespace nitrokey { } if (resp.device_status == static_cast<uint8_t>(stick10::device_status::busy)) { static int busy_counter = 0; + dev->m_counters.busy++; if (busy_counter++<10) { receiving_retry_counter++; - dev->m_counters.busy++; Log::instance()("Status busy, not decreasing receiving_retry_counter counter: " + std::to_string(receiving_retry_counter), Loglevel::DEBUG_L2); } else { |