mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-01 20:20:10 +00:00
32_WifiLight.pm: replace timer remove with api (Forum #81365)
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@15907 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
179bf05ef6
commit
06af540ed9
@ -3826,15 +3826,8 @@ sub
|
|||||||
WifiLight_HighLevelCmdQueue_Clear(@)
|
WifiLight_HighLevelCmdQueue_Clear(@)
|
||||||
{
|
{
|
||||||
my ($ledDevice) = @_;
|
my ($ledDevice) = @_;
|
||||||
foreach my $a (keys %intAt)
|
Log3 ($ledDevice, 4, "$ledDevice->{NAME} high level cmd queue clear");
|
||||||
{
|
RemoveInternalTimer($ledDevice, 'WifiLight_HighLevelCmdQueue_Exec');
|
||||||
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}) ;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$ledDevice->{helper}->{hlCmdQueue} = [];
|
$ledDevice->{helper}->{hlCmdQueue} = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user