diff options
author | Elie Tournier <tournier.elie@gmail.com> | 2017-04-18 13:38:34 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-05-25 15:15:31 +0200 |
commit | af1e72475cc3f1cfc7cadece162e2231610c8cd0 (patch) | |
tree | 4907b5aaf981c8e5984db0957b487afb4c7f08e9 /NitrokeyManager.cc | |
parent | 2428f3ad0a5542a996c16ef80fd7bbd2be5bb5c6 (diff) | |
download | libnitrokey-af1e72475cc3f1cfc7cadece162e2231610c8cd0.tar.gz libnitrokey-af1e72475cc3f1cfc7cadece162e2231610c8cd0.tar.bz2 |
Rename devices: s/Stick10/Device_NKPro and s/Stick20/Device_NKStorage
Signed-off-by: Elie Tournier <tournier.elie@gmail.com>
Diffstat (limited to 'NitrokeyManager.cc')
-rw-r--r-- | NitrokeyManager.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/NitrokeyManager.cc b/NitrokeyManager.cc index 3ff34f2..2aa31e8 100644 --- a/NitrokeyManager.cc +++ b/NitrokeyManager.cc @@ -75,7 +75,7 @@ using nitrokey::misc::strcpyT; bool NitrokeyManager::connect() { std::lock_guard<std::mutex> lock(mex_dev_com_manager); - vector< shared_ptr<Device> > devices = { make_shared<Stick10>(), make_shared<Stick20>() }; + vector< shared_ptr<Device> > devices = { make_shared<Device_NKPro>(), make_shared<Device_NKStorage>() }; for( auto & d : devices ){ if (d->connect()){ device = std::shared_ptr<Device>(d); @@ -104,10 +104,10 @@ using nitrokey::misc::strcpyT; LOG(__FUNCTION__, nitrokey::log::Loglevel::DEBUG_L2); switch (device_model[0]){ case 'P': - device = make_shared<Stick10>(); + device = make_shared<Device_NKPro>(); break; case 'S': - device = make_shared<Stick20>(); + device = make_shared<Device_NKStorage>(); break; default: throw std::runtime_error("Unknown model"); |