diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2017-03-16 16:51:28 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2017-03-16 16:51:28 +0100 |
commit | c6c700c159d731d16ec050d39896e0e8ae41937d (patch) | |
tree | a628314519c7f9dce92479d69fd4552d41629d08 /device.cc | |
parent | ea3032027552d9f00a87e65b6a6399a07f1c5738 (diff) | |
parent | dc63e51bd6bf71559829f61030b94c1bfdbf4401 (diff) | |
download | libnitrokey-c6c700c159d731d16ec050d39896e0e8ae41937d.tar.gz libnitrokey-c6c700c159d731d16ec050d39896e0e8ae41937d.tar.bz2 |
Merge branch 'osx_build'
Diffstat (limited to 'device.cc')
-rw-r--r-- | device.cc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -49,10 +49,12 @@ bool Device::_disconnect() { hid_close(mp_devhandle); mp_devhandle = nullptr; +#ifndef __APPLE__ if (instances_count == 1){ LOG(std::string("Calling hid_exit"), Loglevel::DEBUG_L2); hid_exit(); } +#endif return true; } @@ -204,4 +206,4 @@ std::string Device::ErrorCounters::get_as_string() { p(receiving_error); return ss.str(); } -#undef p
\ No newline at end of file +#undef p |