diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2019-01-24 18:12:13 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2019-01-24 18:12:13 +0100 |
commit | 8e4c28de760033dde2469bb69b76a80076d0fc39 (patch) | |
tree | e018643abd334a16c26a5bc891e5414031249317 /NitrokeyManager.cc | |
parent | 55a71238ac5186187282f002b5eed7ec279f1ec1 (diff) | |
parent | f6ae756f421f668b53131f7d924a6303f3b99c73 (diff) | |
download | libnitrokey-8e4c28de760033dde2469bb69b76a80076d0fc39.tar.gz libnitrokey-8e4c28de760033dde2469bb69b76a80076d0fc39.tar.bz2 |
Merge branch 'pr_149'
Return uint8_t from version getters
Fixes #149
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 99f0b7a..0320ebb 100644 --- a/NitrokeyManager.cc +++ b/NitrokeyManager.cc @@ -937,7 +937,7 @@ using nitrokey::misc::strcpyT; return false; } - int NitrokeyManager::get_minor_firmware_version(){ + uint8_t NitrokeyManager::get_minor_firmware_version(){ switch(device->get_device_model()){ case DeviceModel::PRO:{ auto status_p = GetStatus::CommandTransaction::run(device); @@ -953,7 +953,7 @@ using nitrokey::misc::strcpyT; } return 0; } - int NitrokeyManager::get_major_firmware_version(){ + uint8_t NitrokeyManager::get_major_firmware_version(){ switch(device->get_device_model()){ case DeviceModel::PRO:{ auto status_p = GetStatus::CommandTransaction::run(device); |