summaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r--NitrokeyManager.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc
index 833e916..1753a73 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -614,7 +614,8 @@ namespace nitrokey{
return get_major_firmware_version() <= m[device->get_device_model()];
}
- DeviceModel NitrokeyManager::get_connected_device_model(){
+ DeviceModel NitrokeyManager::get_connected_device_model() const{
+ //FIXME throw if no device is connected or return unknown/unconnected value
return device->get_device_model();
}