aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-01-13 12:04:52 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-11 15:41:38 +0100
commitdeed3e733e7158859fd48ef51b64d924ea4e8184 (patch)
treeb52b188626685a63bf3be184d235f898d37a71a0
parent87252d46294515cc5fcf49eb08c8b1c19b49d27a (diff)
downloadlibnitrokey-deed3e733e7158859fd48ef51b64d924ea4e8184.tar.gz
libnitrokey-deed3e733e7158859fd48ef51b64d924ea4e8184.tar.bz2
Decrease retry count to 20
Update log message to be more readable Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--device.cc2
-rw-r--r--include/device_proto.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/device.cc b/device.cc
index e6fe98e..532ba2e 100644
--- a/device.cc
+++ b/device.cc
@@ -107,7 +107,7 @@ int Device::recv(void *packet) {
}
Stick10::Stick10():
- Device(0x20a0, 0x4108, DeviceModel::PRO, 100ms, 100, 100ms)
+ Device(0x20a0, 0x4108, DeviceModel::PRO, 100ms, 20, 100ms)
{}
diff --git a/include/device_proto.h b/include/device_proto.h
index 31bfe11..2105f30 100644
--- a/include/device_proto.h
+++ b/include/device_proto.h
@@ -296,7 +296,7 @@ namespace nitrokey {
successful_communication = true;
break;
}
- Log::instance()(std::string("Retry status - dev status, equal crc, correct CRC: ")
+ Log::instance()(std::string("Retry status - dev status, awaited cmd crc, correct packet CRC: ")
+ std::to_string(resp.device_status) + " " +
std::to_string(resp.last_command_crc == outp.crc) +
" " + std::to_string(resp.isCRCcorrect()), Loglevel::DEBUG_L2);