From deed3e733e7158859fd48ef51b64d924ea4e8184 Mon Sep 17 00:00:00 2001
From: Szczepan Zalega <szczepan@nitrokey.com>
Date: Fri, 13 Jan 2017 12:04:52 +0100
Subject: Decrease retry count to 20

Update log message to be more readable

Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
---
 device.cc              | 2 +-
 include/device_proto.h | 2 +-
 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);
-- 
cgit v1.2.3