summaryrefslogtreecommitdiff
path: root/NitrokeyManager.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-08-05 13:01:27 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-05 13:22:40 +0200
commit994eeab788b1de606f365fc42c523ac966b6555f (patch)
tree1388c9c9aede213ea1c8b513ce9c8af65f63fc47 /NitrokeyManager.cc
parent8f095c90866579b08a0b3a3e160f49b7e5d5220b (diff)
downloadlibnitrokey-994eeab788b1de606f365fc42c523ac966b6555f.tar.gz
libnitrokey-994eeab788b1de606f365fc42c523ac966b6555f.tar.bz2
Update general config commands - bool -> uint8_t
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
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 84a769b..ed9c7b4 100644
--- a/NitrokeyManager.cc
+++ b/NitrokeyManager.cc
@@ -382,7 +382,8 @@ namespace nitrokey{
}
- void NitrokeyManager::write_config(bool numlock, bool capslock, bool scrolllock, bool enable_user_password, bool delete_user_password, const char *admin_temporary_password) {
+ void NitrokeyManager::write_config(uint8_t numlock, uint8_t capslock, uint8_t scrolllock, bool enable_user_password,
+ bool delete_user_password, const char *admin_temporary_password) {
auto p = get_payload<WriteGeneralConfig>();
p.numlock = (uint8_t) numlock;
p.capslock = (uint8_t) capslock;