mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 08:11:44 +00:00
Nr and configfilename retained for repeating at
(the definition is deleted and recreated) git-svn-id: https://svn.fhem.de/fhem/trunk@1781 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
18589c7776
commit
8f354221e0
@ -117,6 +117,9 @@ at_Exec($)
|
||||
|
||||
# Avoid drift when the timespec is relative
|
||||
$data{AT_TRIGGERTIME} = $defs{$name}{TRIGGERTIME} if($def =~ m/^\+/);
|
||||
|
||||
my $oldCfgfn = $defs{$name}{CFGFN};
|
||||
my $oldNr = $defs{$name}{NR};
|
||||
CommandDelete(undef, $name); # Recreate ourselves
|
||||
|
||||
if($count) {
|
||||
@ -127,6 +130,8 @@ at_Exec($)
|
||||
CommandDefine(undef, "$name at $def"); # Recompute the next TRIGGERTIME
|
||||
delete($data{AT_RECOMPUTE});
|
||||
$attr{$name} = $oldattr;
|
||||
$defs{$name}{CFGFN} = $oldCfgfn if($oldCfgfn);
|
||||
$defs{$name}{NR} = $oldNr;
|
||||
$oldattr = undef;
|
||||
}
|
||||
delete($data{AT_TRIGGERTIME});
|
||||
|
Loading…
x
Reference in New Issue
Block a user