diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-01-13 12:04:52 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-03-11 15:41:38 +0100 |
commit | deed3e733e7158859fd48ef51b64d924ea4e8184 (patch) | |
tree | b52b188626685a63bf3be184d235f898d37a71a0 | |
parent | 87252d46294515cc5fcf49eb08c8b1c19b49d27a (diff) | |
download | libnitrokey-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.cc | 2 | ||||
-rw-r--r-- | include/device_proto.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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); |