aboutsummaryrefslogtreecommitdiff
path: root/include/device_proto.h
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-07-29 15:15:03 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-01 13:54:58 +0200
commit5cd264c294ca6f1bf0758bb5fb0b51f3584d2795 (patch)
tree0b53876fbe298999835dc44e50d77696e2dde40f /include/device_proto.h
parent24ad4504648cd3918bb181b1d54a7c3441c02ae0 (diff)
downloadlibnitrokey-5cd264c294ca6f1bf0758bb5fb0b51f3584d2795.tar.gz
libnitrokey-5cd264c294ca6f1bf0758bb5fb0b51f3584d2795.tar.bz2
Set variable send_receive delay
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 7e2c0d9..6e21f9f 100644
--- a/include/device_proto.h
+++ b/include/device_proto.h
@@ -191,7 +191,7 @@ class Transaction : semantics::non_constructible {
std::string("Device error while sending command ") +
std::to_string((int)(status)));
- std::this_thread::sleep_for(1000ms);
+ std::this_thread::sleep_for(dev.get_send_receive_delay());
// FIXME make checks done in device:recv here
int retry = dev.get_retry_count();