summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-08-21 02:51:27 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-08-21 02:51:27 +0200
commitcf8641217e85ef99df0f6093f4edadeea938cda8 (patch)
tree9b1b1ef586b4ef3362301a0952f37dd2b373044d
parentbf9d97d17b6e9ecc70d8d48f52aca3ade60fc7e4 (diff)
close fsuipc handle before unloading dll
-rwxr-xr-xftnoir_protocol_fsuipc/ftnoir_protocol_fsuipc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ftnoir_protocol_fsuipc/ftnoir_protocol_fsuipc.cpp b/ftnoir_protocol_fsuipc/ftnoir_protocol_fsuipc.cpp
index 8b92055d..486224c9 100755
--- a/ftnoir_protocol_fsuipc/ftnoir_protocol_fsuipc.cpp
+++ b/ftnoir_protocol_fsuipc/ftnoir_protocol_fsuipc.cpp
@@ -39,7 +39,8 @@ FTNoIR_Protocol::FTNoIR_Protocol()
FTNoIR_Protocol::~FTNoIR_Protocol()
{
- FSUIPCLib.unload();
+ FSUIPC_Close();
+ FSUIPCLib.unload();
}
int FTNoIR_Protocol::scale2AnalogLimits( float x, float min_x, float max_x ) {