diff --git a/74_XiaomiBTLESens.pm b/74_XiaomiBTLESens.pm index 28b9298..f432049 100644 --- a/74_XiaomiBTLESens.pm +++ b/74_XiaomiBTLESens.pm @@ -634,7 +634,7 @@ sub CreateParamGatttool($@) { sub Gatttool_executeCommand($) { my $command = join( ' ', @_ ); - ( $_ = qx{$command 2>&1}, $? >> 8 ); + return ( $_ = qx{$command 2>&1}, $? >> 8 ); } sub ExecGatttool_Run($) {