change gatttool test

This commit is contained in:
Marko Oldenburg 2018-01-17 20:20:03 +01:00
parent 1d3e1387ec
commit 80fd21ae7b

View File

@ -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;
Log3 $name, 3, "XiaomiBTLESens ($name) - Gatttool ist: $gatttool";
if(-x $gatttool) {
if(defined($gatttool) and ($gatttool)) {
my $cmd;
my $loop;