mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
fhem.pl: Optional function in RemoveInternalTimer (Forum #50265)
git-svn-id: https://svn.fhem.de/fhem/trunk@10995 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9194bdb563
commit
9794d4fab5
@ -82,7 +82,7 @@ sub ReadingsNum($$$);
|
||||
sub ReadingsTimestamp($$$);
|
||||
sub ReadingsVal($$$);
|
||||
sub RefreshAuthList();
|
||||
sub RemoveInternalTimer($);
|
||||
sub RemoveInternalTimer($;$);
|
||||
sub ReplaceEventMap($$$);
|
||||
sub ResolveDateWildcards($@);
|
||||
sub SemicolonEscape($);
|
||||
@ -2794,11 +2794,12 @@ InternalTimer($$$$)
|
||||
}
|
||||
|
||||
sub
|
||||
RemoveInternalTimer($)
|
||||
RemoveInternalTimer($;$)
|
||||
{
|
||||
my ($arg) = @_;
|
||||
my ($arg, $fn) = @_;
|
||||
foreach my $a (keys %intAt) {
|
||||
delete($intAt{$a}) if($intAt{$a}{ARG} eq $arg);
|
||||
delete($intAt{$a}) if($intAt{$a}{ARG} eq $arg &&
|
||||
(!$fn || $intAt{$a}{FN} eq $fn));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user