From 6b4fe2ecbb19c9a81eb1d05b889ad8274b827b18 Mon Sep 17 00:00:00 2001 From: CoolTux Date: Mon, 4 Nov 2019 14:16:52 +0000 Subject: [PATCH] 74_XiaomiBTLESens: change CometBlueBTLE_CmdlinePreventGrepFalsePositive Fn name git-svn-id: https://svn.fhem.de/fhem/trunk@20455 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/74_XiaomiBTLESens.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/74_XiaomiBTLESens.pm b/fhem/FHEM/74_XiaomiBTLESens.pm index fedc1dc12..a6922e100 100644 --- a/fhem/FHEM/74_XiaomiBTLESens.pm +++ b/fhem/FHEM/74_XiaomiBTLESens.pm @@ -670,7 +670,7 @@ sub ExecGatttool_Run($) { my $grepGatttool; my $gatttoolCmdlineStaticEscaped = - CometBlueBTLE_CmdlinePreventGrepFalsePositive( + BTLE_CmdlinePreventGrepFalsePositive( "gatttool -i $hci -b $mac"); $grepGatttool = qx(ps ax| grep -E \'$gatttoolCmdlineStaticEscaped\') @@ -1334,7 +1334,7 @@ sub CreateDevicenameHEX($) { return $devicenameHex; } -sub CometBlueBTLE_CmdlinePreventGrepFalsePositive($) { +sub BTLE_CmdlinePreventGrepFalsePositive($) { # https://stackoverflow.com/questions/9375711/more-elegant-ps-aux-grep-v-grep # Given abysmal (since external-command-based) performance in the first place, we'd better