diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-01-13 12:11:18 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-03-11 15:41:38 +0100 |
commit | ffcb53e4cb3419ea31bf7b22e5f0c42fd54041da (patch) | |
tree | a453e235a84815fa781eb3aeee94210764e681d2 /NitrokeyManager.cc | |
parent | deed3e733e7158859fd48ef51b64d924ea4e8184 (diff) | |
download | libnitrokey-ffcb53e4cb3419ea31bf7b22e5f0c42fd54041da.tar.gz libnitrokey-ffcb53e4cb3419ea31bf7b22e5f0c42fd54041da.tar.bz2 |
Name fix for firmware version getter
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r-- | NitrokeyManager.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc index f92f5f7..37e35e5 100644 --- a/NitrokeyManager.cc +++ b/NitrokeyManager.cc @@ -612,7 +612,7 @@ namespace nitrokey{ {DeviceModel::PRO, 7}, {DeviceModel::STORAGE, 43}, }); - return get_major_firmware_version() <= m[device->get_device_model()]; + return get_minor_firmware_version() <= m[device->get_device_model()]; } DeviceModel NitrokeyManager::get_connected_device_model() const{ @@ -620,7 +620,7 @@ namespace nitrokey{ return device->get_device_model(); } - int NitrokeyManager::get_major_firmware_version(){ + int NitrokeyManager::get_minor_firmware_version(){ switch(device->get_device_model()){ case DeviceModel::PRO:{ auto status_p = GetStatus::CommandTransaction::run(*device); |