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:
rudolfkoenig
2012-08-01 13:33:33 +00:00
parent af328cdc20
commit b1719d725b

View File

@@ -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});