Skip to content

Commit

Permalink
Decrease retry count to 20
Browse files Browse the repository at this point in the history
Update log message to be more readable

Signed-off-by: Szczepan Zalega <[email protected]>
  • Loading branch information
szszszsz committed Mar 11, 2017
1 parent 87252d4 commit deed3e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion device.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{}


Expand Down
2 changes: 1 addition & 1 deletion include/device_proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit deed3e7

Please sign in to comment.