2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

32_WifiLight.pm: replace timer remove with api (Forum #81365)

git-svn-id: https://svn.fhem.de/fhem/trunk@15907 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
herrmannj 2018-01-16 20:58:44 +00:00
parent fe7c3e5292
commit b78b218cd6

View File

@ -3826,15 +3826,8 @@ sub
WifiLight_HighLevelCmdQueue_Clear(@)
{
my ($ledDevice) = @_;
foreach my $a (keys %intAt)
{
if (($intAt{$a}{ARG} eq $ledDevice) && ($intAt{$a}{FN} eq 'WifiLight_HighLevelCmdQueue_Exec'))
{
Log3 ($ledDevice, 4, "$ledDevice->{NAME} high level cmd queue clear, remove timer at ".$intAt{$a}{TRIGGERTIME} );
delete($intAt{$a}) ;
}
}
Log3 ($ledDevice, 4, "$ledDevice->{NAME} high level cmd queue clear");
RemoveInternalTimer($ledDevice, 'WifiLight_HighLevelCmdQueue_Exec');
$ledDevice->{helper}->{hlCmdQueue} = [];
}