From 6ba23b519c6baf17f3f150f7740eb54d0b5cb0b9 Mon Sep 17 00:00:00 2001 From: LeonGaultier Date: Wed, 17 Jan 2018 19:23:02 +0000 Subject: [PATCH] 74_XiaomiBTLESens: fix ssh gatttool which test git-svn-id: https://svn.fhem.de/fhem/trunk@15916 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 3 +++ fhem/FHEM/74_XiaomiBTLESens.pm | 5 ++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 454b2f419..ec7958c42 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,8 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 74_XiaomiBTLESens: fix ssh gatttool which test + - new: 74_XiaomiBTLESens: modul replace 74_XiaomiFlowerSens, add Support + for Xiamomi Themometer/Hygrometer mit Display - bugfix: 42_SYSMON: Falsche Angabe von Ram free / used bei Debian Stretch - bugfix: 70_BRAVIA: fixed hash for space (application, channel, input names) diff --git a/fhem/FHEM/74_XiaomiBTLESens.pm b/fhem/FHEM/74_XiaomiBTLESens.pm index 9f98652fc..a990b2a49 100644 --- a/fhem/FHEM/74_XiaomiBTLESens.pm +++ b/fhem/FHEM/74_XiaomiBTLESens.pm @@ -47,7 +47,7 @@ use JSON; use Blocking; -my $version = "2.0.0"; +my $version = "2.0.1"; @@ -442,9 +442,8 @@ sub XiaomiBTLESens_ExecGatttool_Run($) { $gatttool = qx(which gatttool) if($sshHost eq 'none'); $gatttool = qx(ssh $sshHost 'which gatttool') if($sshHost ne 'none'); chomp $gatttool; - $gatttool = "ssh $sshHost \'$gatttool\'" if($sshHost ne 'none'); - if(-x $gatttool) { + if(defined($gatttool) and ($gatttool)) { my $cmd; my $loop;