aboutsummaryrefslogtreecommitdiff
path: root/include/dissect.h
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan.zalega@gmail.com>2016-02-20 19:10:19 +0100
committerSzczepan Zalega <szczepan.zalega@gmail.com>2016-02-20 19:10:19 +0100
commitf4d89f0893030f0b8827f3be0d07ebd4de89b315 (patch)
tree37634d5f7a197def9e37f993abf9179ccd3e4f95 /include/dissect.h
parent3fde2fb57101fe9c47cf6cc2d411be8eadc88e5c (diff)
downloadlibnitrokey-f4d89f0893030f0b8827f3be0d07ebd4de89b315.tar.gz
libnitrokey-f4d89f0893030f0b8827f3be0d07ebd4de89b315.tar.bz2
added long sleep for behavior check, read_callback is running, fixed device status and command status messages in logs
Diffstat (limited to 'include/dissect.h')
-rw-r--r--include/dissect.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/dissect.h b/include/dissect.h
index db3186b..32df78d 100644
--- a/include/dissect.h
+++ b/include/dissect.h
@@ -41,10 +41,10 @@ public:
out << "Raw HID packet:" << std::endl;
out << ::nitrokey::misc::hexdump((const char *)(&pod), sizeof pod);
- out << "Device status:\t" << pod.device_status << std::endl;
+ out << "Device status:\t" << pod.device_status + 0 << std::endl;
out << "Command ID:\t" << commandid_to_string((CommandID)(pod.command_id)) << std::endl;
out << "Last command CRC:\t" << pod.last_command_crc << std::endl;
- out << "Last command status:\t" << pod.last_command_status << std::endl;
+ out << "Last command status:\t" << pod.last_command_status + 0 << std::endl;
out << "CRC:\t" << pod.crc << std::endl;
out << "Payload:" << std::endl;