90_at.pm: Fix modify at from relative to one-time (Forum #90764)

git-svn-id: https://svn.fhem.de/fhem/trunk@17252 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-09-02 09:35:58 +00:00
parent cc27204598
commit 78f76ef7c3

View File

@ -120,9 +120,11 @@ at_Define($$)
return undef if($cnt eq "0"); return undef if($cnt eq "0");
$cnt = 0 if(!$cnt); $cnt = 0 if(!$cnt);
$cnt--; $cnt--;
delete($hash->{VOLATILE}); # Modify
$hash->{REP} = $cnt; $hash->{REP} = $cnt;
} else { } else {
$hash->{VOLATILE} = 1; # Write these entries to the statefile $hash->{VOLATILE} = 1; # Write these entries to the statefile
delete($hash->{REP}); # Modify
} }
my $alTime = AttrVal($name, "alignTime", undef); my $alTime = AttrVal($name, "alignTime", undef);