summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan.zalega@gmail.com>2016-02-20 15:41:37 +0100
committerSzczepan Zalega <szczepan.zalega@gmail.com>2016-02-20 15:41:37 +0100
commitd6256069fdc55a998321d8603b5a317f9ea58d42 (patch)
treecfc3ef324ed8093b64b78e6dca0fea197fda8a61
parent5ed712b2f0471d4f1210fc3be6080aeaaf4b126a (diff)
downloadlibnitrokey-d6256069fdc55a998321d8603b5a317f9ea58d42.tar.gz
libnitrokey-d6256069fdc55a998321d8603b5a317f9ea58d42.tar.bz2
removing hid_init() calls as they should have be called automatically (as long as app is not multithreaded, according to specification)
-rw-r--r--device.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/device.cc b/device.cc
index 3aca2b2..55ea943 100644
--- a/device.cc
+++ b/device.cc
@@ -26,9 +26,9 @@ bool Device::disconnect() {
bool Device::connect() {
Log::instance()(__PRETTY_FUNCTION__, Loglevel::DEBUG_L2);
- hid_init();
+ //hid_init();
mp_devhandle = hid_open(m_vid, m_pid, NULL);
- hid_init();
+ //hid_init();
return mp_devhandle != NULL;
}