aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NitrokeyManager.cc2
-rw-r--r--include/stick20_commands.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index 37e35e5..d85af91 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -628,7 +628,7 @@ namespace nitrokey{
}
case DeviceModel::STORAGE:{
auto status = stick20::GetDeviceStatus::CommandTransaction::run(*device);
- return status.data().versionInfo.major;
+ return status.data().versionInfo.minor;
}
}
return 0;
diff --git a/include/stick20_commands.h b/include/stick20_commands.h
index 8080117..fd72f1e 100644
--- a/include/stick20_commands.h
+++ b/include/stick20_commands.h
@@ -130,9 +130,9 @@ namespace nitrokey {
uint8_t VersionInfo_au8[4];
struct {
uint8_t __unused;
- uint8_t major;
- uint8_t __unused2;
uint8_t minor;
+ uint8_t __unused2;
+ uint8_t major;
} __packed versionInfo;
};